We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f42d5b commit 64fd352Copy full SHA for 64fd352
Server/mods/deathmatch/logic/luadefs/CLuaColShapeDefs.cpp
@@ -292,7 +292,7 @@ int CLuaColShapeDefs::CreateColPolygon(lua_State* luaVM)
292
std::vector<CVector2D> vecPointList;
293
294
CScriptArgReader argStream(luaVM);
295
- for (uint i = 0; i < 4 || argStream.NextIsVector2D(); i++)
+ for (uint i = 0; !argStream.HasErrors() && (i < 4 || argStream.NextIsVector2D()); i++)
296
{
297
CVector2D vecPoint;
298
argStream.ReadVector2D(vecPoint);
0 commit comments