mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 07:21:48 +00:00
Correct shadowed declaration and missing include
This commit is contained in:
parent
276cba4641
commit
e1927b693f
2 changed files with 5 additions and 4 deletions
|
|
@ -1168,12 +1168,12 @@ void readlevelheader(MYFILE *f, char * name)
|
|||
mapheaderinfo[num]->musname[0][0] = 0; // becomes empty string
|
||||
else
|
||||
{
|
||||
UINT8 i = 0;
|
||||
UINT8 j = 0; // i was declared elsewhere
|
||||
tmp = strtok(word2, ",");
|
||||
do {
|
||||
deh_strlcpy(mapheaderinfo[num]->musname[i], tmp,
|
||||
sizeof(mapheaderinfo[num]->musname[i]), va("Level header %d: music", num));
|
||||
i += 1;
|
||||
deh_strlcpy(mapheaderinfo[num]->musname[j], tmp,
|
||||
sizeof(mapheaderinfo[num]->musname[j]), va("Level header %d: music", num));
|
||||
j += 1;
|
||||
} while ((tmp = strtok(NULL,",")) != NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include "lua_hook.h" // MusicChange hook
|
||||
#include "byteptr.h"
|
||||
#include "k_menu.h" // M_PlayMenuJam
|
||||
#include "m_random.h" // P_RandomKey
|
||||
|
||||
#ifdef HW3SOUND
|
||||
// 3D Sound Interface
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue