Fixed doors that have a LUA script, butn o usedoor defined, they will open correctly if no usedoor function exists

This commit is contained in:
Image 2021-01-12 07:57:11 -05:00
parent 6304430e3a
commit 1b95c72543

View file

@ -2699,7 +2699,7 @@ bool ZoneServer::CallSpawnScript(Spawn* npc, int8 type, Spawn* spawn, const char
break;
}
case SPAWN_SCRIPT_USEDOOR: {
lua_interface->RunSpawnScript(script, "usedoor", npc, spawn, "", is_door_open);
result = lua_interface->RunSpawnScript(script, "usedoor", npc, spawn, "", is_door_open);
break;
}
default: