- 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:
parent
02b3884dff
commit
36bf099d54
4 changed files with 31 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue