Oops. Forgot an assignment.
authornemo
Tue, 14 Jun 2011 11:29:15 -0400
changeset 5240 9135c1905415
parent 5239 f34f391a223b
child 5241 e1fb0fc971c6
Oops. Forgot an assignment.
hedgewars/uLandObjects.pas
--- a/hedgewars/uLandObjects.pas	Sun Jun 12 22:34:38 2011 -0400
+++ b/hedgewars/uLandObjects.pas	Tue Jun 14 11:29:15 2011 -0400
@@ -473,7 +473,7 @@
             begin
             i:= Pos(',', s);
             Surf:= LoadImage(UserPathz[ptCurrTheme] + '/' + Trim(Copy(s, 1, Pred(i))), ifTransparent or ifIgnoreCaps);
-            if Surf = nil then LoadImage(Pathz[ptCurrTheme] + '/' + Trim(Copy(s, 1, Pred(i))), ifCritical or ifTransparent or ifIgnoreCaps);
+            if Surf = nil then Surf:= LoadImage(Pathz[ptCurrTheme] + '/' + Trim(Copy(s, 1, Pred(i))), ifCritical or ifTransparent or ifIgnoreCaps);
             Width:= Surf^.w;
             Height:= Surf^.h;
             Delete(s, 1, i);