# HG changeset patch # User nemo # Date 1308065355 14400 # Node ID 9135c1905415102096cf63bd1932489dbf4d8408 # Parent f34f391a223bca09267ad2b40ea97857dedcf9ef Oops. Forgot an assignment. diff -r f34f391a223b -r 9135c1905415 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);