mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-19 10:08:04 +03:00
Added resource resetting (fixed bug with unitialized fields in resource_t)
This commit is contained in:
parent
415240ecde
commit
b8d7a22043
@ -5004,6 +5004,8 @@ void EXT_FUNC SV_AddResource(resourcetype_t type, const char *name, int size, un
|
|||||||
|
|
||||||
#ifdef REHLDS_FIXES
|
#ifdef REHLDS_FIXES
|
||||||
r = &g_rehlds_sv.resources[g_psv.num_resources++];
|
r = &g_rehlds_sv.resources[g_psv.num_resources++];
|
||||||
|
|
||||||
|
Q_memset(r, 0, sizeof(*r));
|
||||||
#else // REHLDS_FIXES
|
#else // REHLDS_FIXES
|
||||||
r = &g_psv.resourcelist[g_psv.num_resources++];
|
r = &g_psv.resourcelist[g_psv.num_resources++];
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user