2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-03 18:45:46 +03:00

Merge pull request #166 from WPMGPRoSToTeMa/resourcelistextend

Added resource resetting (fixed bug with unitialized fields in resour…
This commit is contained in:
theAsmodai 2016-02-07 13:39:01 +03:00
commit c85cbf91f8

View File

@ -5005,6 +5005,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