hedgewars/uLandObjects.pas
changeset 279 5df0ab96b60a
parent 184 f97a7a3dc8f6
child 351 29bc9c36ad5f
--- a/hedgewars/uLandObjects.pas	Sun Nov 26 18:15:31 2006 +0000
+++ b/hedgewars/uLandObjects.pas	Sun Nov 26 20:33:46 2006 +0000
@@ -359,7 +359,8 @@
     with ThemeObjects.objs[i] do
          begin
          Surf:= LoadImage(Pathz[ptCurrTheme] + '/' + s, false);
-         Read(f, Width, Height);
+         Width:= Surf.w;
+         Height:= Surf.h;
          with inland do Read(f, x, y, w, h);
          Read(f, rectcnt);
          for ii:= 1 to rectcnt do