[Scummvm-git-logs] scummvm master -> 299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3
Strangerke
Strangerke at scummvm.org
Mon Sep 9 23:24:35 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
299c28e93e HDB: Remove useless check on array vs null
Commit: 299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3
https://github.com/scummvm/scummvm/commit/299c28e93e63452bcdd76dfa2c4d1a08b0af5ee3
Author: Strangerke (strangerke at scummvm.org)
Date: 2019-09-09T23:22:22+02:00
Commit Message:
HDB: Remove useless check on array vs null
Changed paths:
engines/hdb/ai-funcs.cpp
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 0078f89..0d6993b 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);
}
More information about the Scummvm-git-logs
mailing list