HDB: Fix Shadowed Variable Compiler Warning

This commit is contained in:
jepael 2019-09-26 21:41:46 +03:00 committed by D G Turner
parent 19a2195ba2
commit f702537820
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);