mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-02 09:21:29 +00:00
Move skin->namehash set to conclusion of R_AddSkins loop just before numskins is incremented, as it's possible to have a default name for a skin that doesn't touch the hash codepath
This commit is contained in:
parent
0b5124b8c4
commit
3e663867b9
1 changed files with 3 additions and 2 deletions
|
|
@ -959,8 +959,6 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
|
|||
Z_Free(value2);
|
||||
}
|
||||
|
||||
skin->namehash = quickncasehash(skin->name, SKINNAMESIZE);
|
||||
|
||||
// copy to hudname and fullname as a default.
|
||||
if (!realname)
|
||||
{
|
||||
|
|
@ -1005,6 +1003,9 @@ next_token:
|
|||
HWR_AddPlayerModel(numskins);
|
||||
#endif
|
||||
|
||||
// Finally, conclude by setting up final properties.
|
||||
skin->namehash = quickncasehash(skin->name, SKINNAMESIZE);
|
||||
|
||||
numskins++;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue