Skip to content

Commit 04b8ee6

Browse files
authored
Small tweak for CLuaUtilDefs::Split
This increases maintainability for new devs, because the implicit conversion in SString sucks (as well as it's a trashy class)
1 parent 9a0b1d5 commit 04b8ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int CLuaUtilDefs::Split(lua_State* luaVM)
227227
lua_pushstring(luaVM, szToken);
228228
lua_settable(luaVM, -3);
229229

230-
szToken = strtok(NULL, strDelimiter);
230+
szToken = strtok(nullptr, strDelimiter.c_str());
231231
}
232232

233233
// Delete the text

0 commit comments

Comments
 (0)