Skip to content

Commit e0e3688

Browse files
committed
Fix warning
1 parent 830ee16 commit e0e3688

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Shared/mods/deathmatch/logic/luadefs/CLuaUtilDefs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,14 @@ int CLuaUtilDefs::Split(lua_State* luaVM)
200200
lua_settable(luaVM, -3);
201201

202202
// strtok until we're out of tokens
203-
while (szToken = strtok(NULL, strDelimiter))
203+
while (szToken)
204204
{
205205
// Add the token to the table
206206
lua_pushnumber(luaVM, ++uiCount);
207207
lua_pushstring(luaVM, szToken);
208208
lua_settable(luaVM, -3);
209+
210+
szToken = strtok(NULL, strDelimiter);
209211
}
210212

211213
// Delete the text

0 commit comments

Comments
 (0)