2
0
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:
WPMGPRoSToTeMa 2016-02-07 04:05:45 +03:00
parent 415240ecde
commit b8d7a22043

View File

@ -5004,6 +5004,8 @@ void EXT_FUNC SV_AddResource(resourcetype_t type, const char *name, int size, un
#ifdef REHLDS_FIXES
r = &g_rehlds_sv.resources[g_psv.num_resources++];
Q_memset(r, 0, sizeof(*r));
#else // REHLDS_FIXES
r = &g_psv.resourcelist[g_psv.num_resources++];
#endif