Skip to content
Permalink
Browse files

HDB: Remove useless check on array vs null

  • Loading branch information...
Strangerke committed Sep 9, 2019
1 parent 5e0fa2a commit 299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/hdb/ai-funcs.cpp
@@ -619,7 +619,7 @@ bool AI::useLuaEntity(const char *initName) {

// Check _actions list for activation as well
for (int i = 0; i < kMaxActions; i++) {
if (_actions[i].entityName && !scumm_stricmp(initName, _actions[i].entityName)) {
if (!scumm_stricmp(initName, _actions[i].entityName)) {
checkActionList(&_dummyPlayer, _actions[i].x1, _actions[i].y1, false);
checkActionList(&_dummyPlayer, _actions[i].x2, _actions[i].y2, false);
}

0 comments on commit 299c28e

Please sign in to comment.
You can’t perform that action at this time.