diff options
author | Nipun Garg | 2019-07-03 23:50:28 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:10 +0200 |
commit | f832f66dd32a84f909c719ae6a1e62cf8743c691 (patch) | |
tree | 98520a690f7099d5e85a1589cb00d782b4be65be /engines | |
parent | fe9242f412dc66d30ed506021228c792fda99793 (diff) | |
download | scummvm-rg350-f832f66dd32a84f909c719ae6a1e62cf8743c691.tar.gz scummvm-rg350-f832f66dd32a84f909c719ae6a1e62cf8743c691.tar.bz2 scummvm-rg350-f832f66dd32a84f909c719ae6a1e62cf8743c691.zip |
HDB: Fix removeEntity to not manipulate pointers
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 761f74d4f4..08b72ee049 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -669,7 +669,7 @@ int AI::checkForTouchplate(int x, int y) { } void AI::removeEntity(AIEntity *e) { - for (int i = 0; i < _ents->size(); i++) + for (uint i = 0; i < _ents->size(); i++) if (_ents->operator[](i) == e) { _ents->remove_at(i); return; |