Instructions Jenkins Doxygen

[fixed] LuaPlayerObject addWaypoint number of arguments check 66/2266/1
authorMiztah <myztah@gmail.com>
Sat, 9 Aug 2014 20:53:11 +0000 (20:53 +0000)
committerMiztah <myztah@gmail.com>
Sat, 9 Aug 2014 20:53:11 +0000 (20:53 +0000)
Change-Id: I3e372447950f4f81ec85eab097867510bd43ae7c

MMOCoreORB/src/server/zone/objects/player/LuaPlayerObject.cpp

index bea1f38..9f33f27 100644 (file)
@@ -134,7 +134,7 @@ int LuaPlayerObject::decreaseFactionStanding(lua_State* L) {
 
 //addWaypoint(planet, name, desc, x, y, color, active, notifyClient, specialTypeID, persistence = 1)
 int LuaPlayerObject::addWaypoint(lua_State* L) {
-       int numberOfArguments = lua_gettop(L);
+       int numberOfArguments = lua_gettop(L) - 1;
 
        String planet, customName, desc;
        float x, y;