From f702537820622baf6bf0252636cc8f792bc9a0aa Mon Sep 17 00:00:00 2001 From: jepael Date: Thu, 26 Sep 2019 21:41:46 +0300 Subject: HDB: Fix Shadowed Variable Compiler Warning --- engines/hdb/ai-funcs.cpp | 4 ++-- engines/hdb/ai.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 414e7c48c2..e2955959da 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -88,7 +88,7 @@ AIEntity *AI::spawn(AIType type, AIDir dir, int x, int y, const char *funcInit, return e; } -bool AI::cacheEntGfx(AIEntity *e, bool init) { +bool AI::cacheEntGfx(AIEntity *e, bool initFlag) { int i = 0; while (true) { if (aiEntList[i].type == END_AI_TYPES) @@ -425,7 +425,7 @@ bool AI::cacheEntGfx(AIEntity *e, bool init) { e->aiInit = aiEntList[i].initFunc; e->aiInit2 = aiEntList[i].initFunc2; - if (init) { + if (initFlag) { e->aiInit(e); if (e->aiInit2) e->aiInit2(e); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index a456cde782..47d810bf03 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -845,7 +845,7 @@ public: // Entity Functions AIEntity *spawn(AIType type, AIDir dir, int x, int y, const char *funcInit, const char *funcAction, const char *funcUse, AIDir dir2, int level, int value1, int value2, int callInit); - bool cacheEntGfx(AIEntity *e, bool init); + bool cacheEntGfx(AIEntity *e, bool initFlag); void stopEntity(AIEntity *e); AIEntity *locateEntity(const char *luaName); AIEntity *findEntity(int x, int y); -- cgit v1.2.3