diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index db72bd9..85b0dfb 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -945,7 +945,7 @@ namespace LuaWorldObject { WorldObject* target = Eluna::CHECKOBJ(L, 2, true); float distance = Eluna::CHECKVAL(L, 3); - float is3D = Eluna::CHECKVAL(L, 4, true); + bool is3D = Eluna::CHECKVAL(L, 4, true); Eluna::Push(L, obj->IsWithinDist(target, distance, is3D)); return 1; } @@ -964,7 +964,7 @@ namespace LuaWorldObject { WorldObject* target = Eluna::CHECKOBJ(L, 2); float distance = Eluna::CHECKVAL(L, 3); - float is3D = Eluna::CHECKVAL(L, 4, true); + bool is3D = Eluna::CHECKVAL(L, 4, true); Eluna::Push(L, obj->IsWithinDistInMap(target, distance)); return 1; @@ -986,7 +986,7 @@ namespace LuaWorldObject WorldObject* target = Eluna::CHECKOBJ(L, 2); float minrange = Eluna::CHECKVAL(L, 3); float maxrange = Eluna::CHECKVAL(L, 4); - float is3D = Eluna::CHECKVAL(L, 5, true); + bool is3D = Eluna::CHECKVAL(L, 5, true); Eluna::Push(L, obj->IsInRange(target, minrange, maxrange, is3D)); return 1;