mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +00:00
Change array size from MAXSKINS+1 to MAXSKINS+2
Also Set the values to 0/NULl, it will be overwritten later when a skin is assigned to the slot.
This commit is contained in:
parent
12d0d6ff77
commit
df8a5ffc1e
2 changed files with 9 additions and 3 deletions
|
|
@ -514,10 +514,16 @@ const char *netxcmdnames[MAXNETXCMD - 1] =
|
||||||
*/
|
*/
|
||||||
void D_RegisterServerCommands(void)
|
void D_RegisterServerCommands(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
Forceskin_cons_t[0].value = -1;
|
Forceskin_cons_t[0].value = -1;
|
||||||
Forceskin_cons_t[0].strvalue = "Off";
|
Forceskin_cons_t[0].strvalue = "Off";
|
||||||
Forceskin_cons_t[MAXSKINS].value = 0;
|
|
||||||
Forceskin_cons_t[MAXSKINS].strvalue = NULL;
|
// Set the values to 0/NULl, it will be overwritten later when a skin is assigned to the slot.
|
||||||
|
for (i = 1; i < MAXSKINS; i++)
|
||||||
|
{
|
||||||
|
Forceskin_cons_t[i].value = 0;
|
||||||
|
Forceskin_cons_t[i].strvalue = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
RegisterNetXCmd(XD_NAMEANDCOLOR, Got_NameAndColor);
|
RegisterNetXCmd(XD_NAMEANDCOLOR, Got_NameAndColor);
|
||||||
RegisterNetXCmd(XD_WEAPONPREF, Got_WeaponPref);
|
RegisterNetXCmd(XD_WEAPONPREF, Got_WeaponPref);
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ int snprintf(char *str, size_t n, const char *fmt, ...);
|
||||||
//int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
|
//int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CV_PossibleValue_t Forceskin_cons_t[MAXSKINS+1];
|
CV_PossibleValue_t Forceskin_cons_t[MAXSKINS+2];
|
||||||
|
|
||||||
static void R_InitSkins(void);
|
static void R_InitSkins(void);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue