diff --git a/src/lua_baselib.c b/src/lua_baselib.c
index 438c20b813ba8395681cc061e62afc9cb7f4121f..f5466227817ecd8c612becbe942190886457e7c4 100644
--- a/src/lua_baselib.c
+++ b/src/lua_baselib.c
@@ -3479,7 +3479,7 @@ static int lib_gAddPlayer(lua_State *L)
 	}
 	
 	LUA_PushUserdata(L, newplayer, META_PLAYER);
-	return 0;
+	return 1;
 }