Forgot a define check

This commit is contained in:
Foereaper
2020-09-12 15:47:56 +02:00
parent b6a450569e
commit 4c7ad83e06

View File

@@ -804,7 +804,11 @@ namespace LuaWorldObject
default:
return luaL_argerror(L, 7, "valid SpawnType expected");
}
#ifdef TRINITY
Eluna::Push(L, obj->SummonCreature(entry, x, y, z, o, type, Seconds(despawnTimer)));
#else
Eluna::Push(L, obj->SummonCreature(entry, x, y, z, o, type, despawnTimer));
#endif
return 1;
}