From 76ddbe7bd9109b7479d6f130caf061b3249754c9 Mon Sep 17 00:00:00 2001 From: sluicebox Date: Tue, 10 Sep 2019 16:20:19 -0700 Subject: HDB: Fix empty string test --- engines/hdb/ai-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3