config: Fix const correctness issue in M_GetSaveGameDir
Some paths return a new string so all paths must return a new string. Otherwise the caller wouldn't know whether to release it or not.
This commit is contained in:
parent
a4071b31a4
commit
f95176a5b8
1 changed files with 1 additions and 1 deletions
|
|
@ -2246,7 +2246,7 @@ char *M_GetSaveGameDir(char *iwadname)
|
|||
|
||||
else if (M_ParmExists("-cdrom"))
|
||||
{
|
||||
savegamedir = configdir;
|
||||
savegamedir = M_StringDuplicate(configdir);
|
||||
}
|
||||
#endif
|
||||
// If not "doing" a configuration directory (Windows), don't "do"
|
||||
|
|
|
|||
Loading…
Reference in a new issue