diff options
author | D G Turner | 2019-09-13 23:05:22 +0100 |
---|---|---|
committer | D G Turner | 2019-09-13 23:06:32 +0100 |
commit | c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8 (patch) | |
tree | 303f3819d5bfb351375399ab0d01b6c135ea141e /engines/hdb/ai-init.cpp | |
parent | bc7d30fb07f85e2a099cbebded3f48e0dc131c15 (diff) | |
download | scummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.tar.gz scummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.tar.bz2 scummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.zip |
HDB: Further Fixes for GCC Compiler Warnings
Diffstat (limited to 'engines/hdb/ai-init.cpp')
-rw-r--r-- | engines/hdb/ai-init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 7d9a15cde9..e2e42cc04c 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -1246,7 +1246,9 @@ void AI::restartSystem() { _hereList->clear(); // Clear Bridges - memset(&_bridges[0], 0, sizeof(_bridges)); + for (uint8 i = 0; i < ARRAYSIZE(_bridges); i++) { + _bridges[i].reset(); + } _numBridges = 0; // Clear waypoints |