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 830ee16 commit e0e3688Copy full SHA for e0e3688
Shared/mods/deathmatch/logic/luadefs/CLuaUtilDefs.cpp
@@ -200,12 +200,14 @@ int CLuaUtilDefs::Split(lua_State* luaVM)
200
lua_settable(luaVM, -3);
201
202
// strtok until we're out of tokens
203
- while (szToken = strtok(NULL, strDelimiter))
+ while (szToken)
204
{
205
// Add the token to the table
206
lua_pushnumber(luaVM, ++uiCount);
207
lua_pushstring(luaVM, szToken);
208
209
+
210
+ szToken = strtok(NULL, strDelimiter);
211
}
212
213
// Delete the text
0 commit comments