aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-08-14 15:15:21 +0530
committerEugene Sandulenko2019-09-03 17:17:33 +0200
commit680aeba0a4af332391ddccb650a6d8e20e41d2f7 (patch)
treec6bbf9f70936f9c68ae87c359c1b2a42711a1a23
parente9970a20ddee1f7ddc92ada10cf86a99617c27b4 (diff)
downloadscummvm-rg350-680aeba0a4af332391ddccb650a6d8e20e41d2f7.tar.gz
scummvm-rg350-680aeba0a4af332391ddccb650a6d8e20e41d2f7.tar.bz2
scummvm-rg350-680aeba0a4af332391ddccb650a6d8e20e41d2f7.zip
HDB: Simplify conditional
-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 a633952428..afd6f3a761 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -2351,7 +2351,7 @@ void AI::movePlayer(uint16 buttons) {
// there's a possibility that an actual entity and a LUA entity
// can share the same spot, so we need to be able to deal with
// the real entity first, then the LUA entity.
- if (!hit || (hit && hit->type == AI_NONE)) {
+ if (!hit || hit->type == AI_NONE) {
switch (_player->state) {
case STATE_STANDUP:
case STATE_STANDDOWN: