- fixed: object pointers as array members may not be skipped if they are null.

- changed S_GetMusic to return a const pointer to the actual music name instead of a copy. The only thing this is used for is the savegame code and it has no use for a copy, it can work far more efficiently with a const pointer.
This commit is contained in:
Christoph Oelckers 2016-09-23 21:24:56 +02:00
commit 36bf099d54
4 changed files with 31 additions and 18 deletions

View file

@ -2608,13 +2608,13 @@ void S_MIDIDeviceChanged()
//
//==========================================================================
int S_GetMusic (char **name)
int S_GetMusic (const char **name)
{
int order;
if (mus_playing.name.IsNotEmpty())
{
*name = copystring (mus_playing.name);
*name = mus_playing.name;
order = mus_playing.baseorder;
}
else