Fix TC build

This commit is contained in:
Rochet2
2017-11-08 22:03:31 +02:00
parent 5874674599
commit e2054785d0

View File

@@ -440,7 +440,7 @@ namespace LuaCreature
int GetCurrentWaypointId(lua_State* L, Creature* creature) int GetCurrentWaypointId(lua_State* L, Creature* creature)
{ {
#ifdef TRINITY #ifdef TRINITY
Eluna::Push(L, creature->GetCurrentWaypointID()); Eluna::Push(L, creature->GetCurrentWaypointInfo().first);
#else #else
Eluna::Push(L, creature->GetMotionMaster()->getLastReachedWaypoint()); Eluna::Push(L, creature->GetMotionMaster()->getLastReachedWaypoint());
#endif #endif