From f832f66dd32a84f909c719ae6a1e62cf8743c691 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 3 Jul 2019 23:50:28 +0530 Subject: HDB: Fix removeEntity to not manipulate pointers --- engines/hdb/ai-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3