aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorStrangerke2019-09-09 23:22:22 +0200
committerStrangerke2019-09-09 23:22:22 +0200
commit299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3 (patch)
tree7f63d7130e11ef145e24c83a677bfeb8b0f2989b /engines/hdb
parent5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09 (diff)
downloadscummvm-rg350-299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3.tar.gz
scummvm-rg350-299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3.tar.bz2
scummvm-rg350-299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3.zip
HDB: Remove useless check on array vs null
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai-funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 0078f89556..0d6993bc83 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/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);
}