mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
move dupenum declaration to beginning of block
This commit is contained in:
parent
a73f468ea4
commit
e849c9898e
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…
Reference in a new issue