mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
HDB: Remove useless check on array vs null
This commit is contained in:
parent
5e0fa2a71c
commit
299c28e93e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user