diff options
Diffstat (limited to 'engines/hdb/ai-waypoint.cpp')
-rw-r--r-- | engines/hdb/ai-waypoint.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-waypoint.cpp b/engines/hdb/ai-waypoint.cpp index 702e41b243..a10b70d483 100644 --- a/engines/hdb/ai-waypoint.cpp +++ b/engines/hdb/ai-waypoint.cpp @@ -246,7 +246,9 @@ void AI::removeFirstWaypoint() { } void AI::clearWaypoints() { - memset(&_waypoints[0], 0, sizeof(_waypoints)); + for (uint8 i = 0; i < ARRAYSIZE(_waypoints); i++) { + _waypoints[i].reset(); + } _numWaypoints = 0; } |