From af17c1ac5161b261c4c8c41e360dd5d11b7859d7 Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Wed, 20 Aug 2003 12:12:11 +0000 Subject: copied some fixes which only were in 0.5.1 branch. svn-id: r9799 --- sky/autoroute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sky/autoroute.cpp') 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; -- cgit v1.2.3