aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsluicebox2019-09-10 16:20:19 -0700
committersluicebox2019-09-10 16:20:19 -0700
commit76ddbe7bd9109b7479d6f130caf061b3249754c9 (patch)
tree390c5e7b0f983350914356e7160e1b135e6e89a6
parentd8820de8b051dfae83652ecb81b27a38a2757c3d (diff)
downloadscummvm-rg350-76ddbe7bd9109b7479d6f130caf061b3249754c9.tar.gz
scummvm-rg350-76ddbe7bd9109b7479d6f130caf061b3249754c9.tar.bz2
scummvm-rg350-76ddbe7bd9109b7479d6f130caf061b3249754c9.zip
HDB: Fix empty string test
-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 0d6993bc83..414e7c48c2 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -611,7 +611,7 @@ bool AI::useLuaEntity(const char *initName) {
if (!scumm_stricmp(initName, e->entityName)) {
e->aiUse(e);
checkActionList(e, e->tileX, e->tileY, true);
- if (e->luaFuncUse)
+ if (e->luaFuncUse[0])
g_hdb->_lua->callFunction(e->luaFuncUse, 0);
return true;
}