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:
commit
c85cbf91f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user