diff options
author | Nipun Garg | 2019-06-23 02:25:06 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:56 +0200 |
commit | 6e9647eab5fdc5b7b996149159952489721a0459 (patch) | |
tree | e098908d0035c65a2a0e2aeba38611126dce0bda /engines | |
parent | 2e820d0e69fc766f5997e0bb64a50636989a24bf (diff) | |
download | scummvm-rg350-6e9647eab5fdc5b7b996149159952489721a0459.tar.gz scummvm-rg350-6e9647eab5fdc5b7b996149159952489721a0459.tar.bz2 scummvm-rg350-6e9647eab5fdc5b7b996149159952489721a0459.zip |
HDB: Fix local variable warnings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 753386cd4c..9a62d44e97 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -214,15 +214,15 @@ void AI::processCines() { g_hdb->useEntity((*it)); } } - for (int i = 0; i < kMaxActions; i++) { - if (_actions[i].entityName && Common::matchString(_actions[i].entityName, "door1")) { - checkActionList(&_dummyPlayer, _actions[i].x1, _actions[i].y1, false); - checkActionList(&_dummyPlayer, _actions[i].x2, _actions[i].y2, false); + for (int k = 0; k < kMaxActions; k++) { + if (_actions[k].entityName && Common::matchString(_actions[k].entityName, "door1")) { + checkActionList(&_dummyPlayer, _actions[k].x1, _actions[k].y1, false); + checkActionList(&_dummyPlayer, _actions[k].x2, _actions[k].y2, false); } } - for (int i = 0;i < kMaxAutoActions;i++) { - if (_autoActions[i].entityName && Common::matchString(_autoActions[i].entityName, _cine[i]->string) && !_autoActions[i].activated) - checkAutoList(&_dummyPlayer, _autoActions[i].x, _autoActions[i].y); + for (int j = 0; j < kMaxAutoActions; j++) { + if (_autoActions[j].entityName && Common::matchString(_autoActions[j].entityName, _cine[i]->string) && !_autoActions[j].activated) + checkAutoList(&_dummyPlayer, _autoActions[j].x, _autoActions[j].y); } complete = true; break; |