mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Undoing malloc for S_MusicName, pass music_name instead.
I don't think there's a reason for copying to a new var.
This commit is contained in:
parent
5e3e23c779
commit
074f43f377
1 changed files with 1 additions and 5 deletions
|
|
@ -1606,11 +1606,7 @@ boolean S_MusicPaused(void)
|
|||
|
||||
const char *S_MusicName(void)
|
||||
{
|
||||
//return music_name;
|
||||
char *result = (char *)malloc(7);
|
||||
strncpy(result, music_name, 7);
|
||||
result[6] = 0;
|
||||
return result;
|
||||
return music_name;
|
||||
}
|
||||
|
||||
boolean S_MusicExists(const char *mname, boolean checkMIDI, boolean checkDigi)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue