hedgewars/uLandPainted.pas
changeset 10131 4b4a043111f4
parent 10108 c68cf030eded
child 10243 9a3ba4e76e38
--- a/hedgewars/uLandPainted.pas	Tue Feb 11 22:05:03 2014 +0400
+++ b/hedgewars/uLandPainted.pas	Wed Feb 12 00:50:15 2014 +0400
@@ -33,6 +33,7 @@
     X, Y: SmallInt;
     flags: byte;
     end;
+    PPointRec = ^PointRec;
 
 type
     PPointEntry = ^PointEntry;
@@ -45,7 +46,7 @@
 
 procedure chDraw(var s: shortstring);
 var rec: PointRec;
-    prec: ^PointRec;
+    prec: PPointRec;
     pe: PPointEntry;
     i, l: byte;
 begin
@@ -53,7 +54,7 @@
     l:= length(s);
     while i < l do
         begin
-        prec:= @s[i];
+        prec:= PPointRec(@s[i]);
         rec:= prec^;
         rec.X:= SDLNet_Read16(@rec.X);
         rec.Y:= SDLNet_Read16(@rec.Y);