Permalink
Browse files

LaserCreate() small fix

  • Loading branch information...
1 parent 2910740 commit d34f610414a0f3340991fd7f316a549f3b9e7972 @east committed Feb 23, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/game/server/lua/commands/entities.cpp
@@ -394,10 +394,10 @@ int CLuaFile::LaserCreate(lua_State *L)
int Owner;
lua_getglobal(L, "pLUA");
- CLuaFile *pSelf = (CLuaFile *)lua_touserdata(L, -1);
- lua_Debug Frame;
- lua_getstack(L, 1, &Frame);
- lua_getinfo(L, "nlSf", &Frame);
+ CLuaFile *pSelf = (CLuaFile *)lua_touserdata(L, -1);
+ lua_Debug Frame;
+ lua_getstack(L, 1, &Frame);
+ lua_getinfo(L, "nlSf", &Frame);
if(!lua_isnumber(L, 1) || !lua_isnumber(L, 2) || !lua_isnumber(L, 3) || !lua_isnumber(L, 4) || !lua_isnumber(L, 5) || !lua_isnumber(L, 6))
return 0;
@@ -408,4 +408,6 @@ int CLuaFile::LaserCreate(lua_State *L)
Owner = lua_tonumber(L, 6);
new CLaser(&pSelf->m_pServer->m_World, Pos, Dir, pSelf->m_pServer->Tuning()->m_LaserReach, Owner);
+
+ return 0;
}

0 comments on commit d34f610

Please sign in to comment.