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:
Turo Lamminen 2018-05-23 12:39:43 +03:00
parent a4071b31a4
commit f95176a5b8

View file

@ -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"