mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
move dupenum declaration to beginning of block
This commit is contained in:
parent
f5fe73571b
commit
639de75fc1
1 changed files with 1 additions and 1 deletions
|
|
@ -814,6 +814,7 @@ static void readskincolor(MYFILE *f, INT32 num)
|
|||
{
|
||||
size_t lastchar = strlen(truncword);
|
||||
char oldword[lastchar+1];
|
||||
char dupenum = '1';
|
||||
|
||||
strlcpy(oldword, truncword, lastchar+1);
|
||||
lastchar--;
|
||||
|
|
@ -825,7 +826,6 @@ static void readskincolor(MYFILE *f, INT32 num)
|
|||
lastchar++;
|
||||
}
|
||||
|
||||
char dupenum = '1';
|
||||
while (R_GetColorByName(truncword))
|
||||
{
|
||||
truncword[lastchar] = dupenum;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue