diff options
Diffstat (limited to 'sky/autoroute.cpp')
-rw-r--r-- | sky/autoroute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sky/autoroute.cpp b/sky/autoroute.cpp index 760e3640d8..31d2aec140 100644 --- a/sky/autoroute.cpp +++ b/sky/autoroute.cpp @@ -236,7 +236,7 @@ uint16 SkyAutoRoute::autoRoute(Compact *cpt) { clipCoordX(cpt->extCompact->arTargetX, destX, initDestX); clipCoordY(cpt->extCompact->arTargetY, destY, initDestY); - ((uint16*)cpt->extCompact->animScratch)[0] = 0; + memset(cpt->extCompact->animScratch, 0, 64); if ((startX == destX) && (startY == destY)) return 2; |