Skip to content

Commit 0ce219a

Browse files
committed
Start indexing colshape type from 0
1 parent 27bbeac commit 0ce219a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/luadefs/CLuaColShapeDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int CLuaColShapeDefs::GetColShapeType(lua_State* luaVM)
5555
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine(luaVM);
5656
if (pLuaMain)
5757
{
58-
lua_pushnumber(luaVM, pColShape->GetShapeType() + 1); // start from 1 not 0
58+
lua_pushnumber(luaVM, pColShape->GetShapeType());
5959
return 1;
6060
}
6161
}

0 commit comments

Comments
 (0)