diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index 85b0dfb..5a6b0e5 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -966,7 +966,7 @@ namespace LuaWorldObject float distance = Eluna::CHECKVAL(L, 3); bool is3D = Eluna::CHECKVAL(L, 4, true); - Eluna::Push(L, obj->IsWithinDistInMap(target, distance)); + Eluna::Push(L, obj->IsWithinDistInMap(target, distance, is3D)); return 1; }