Skip to content

Commit 90e0bb6

Browse files
committed
server/createColPolygon: allow passing in more Vec2 args
1 parent ec22f36 commit 90e0bb6

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
@@ -249,7 +249,7 @@ int CLuaColShapeDefs::CreateColPolygon(lua_State* luaVM)
249249
std::vector<CVector2D> vecPointList;
250250

251251
CScriptArgReader argStream(luaVM);
252-
for (uint i = 0; i < 4 || argStream.NextCouldBeNumber(); i++)
252+
for (uint i = 0; i < 4 || argStream.NextIsVector2D(); i++)
253253
{
254254
CVector2D vecPoint;
255255
argStream.ReadVector2D(vecPoint);

0 commit comments

Comments
 (0)