Codechange: lengthof is not defined for runtime-length strings, use sizeof instead

This commit is contained in:
Charles Pigott
2018-05-16 21:26:41 +01:00
committed by frosch
parent 5f86e1a390
commit 2aacddd412
2 changed files with 4 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ typedef SaveLoad SaveLoadGlobVarList;
* @param variable Name of the global variable.
* @param type Storage of the data in memory and in the savegame.
*/
#define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
#define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, sizeof(variable), 0, SL_MAX_VERSION)
/**
* Storage of a global list in every savegame version.