mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
Fix in SetModel: using string from global model_precache instead of passed string
This commit is contained in:
parent
4cd651d865
commit
18babec090
@ -150,7 +150,11 @@ void EXT_FUNC PF_setmodel_I(edict_t *e, const char *m)
|
||||
{
|
||||
e->v.modelindex = i;
|
||||
model_t *mod = g_psv.models[i];
|
||||
#ifdef REHLDS_FIXES
|
||||
e->v.model = *check - pr_strings;
|
||||
#else // REHLDS_FIXES
|
||||
e->v.model = m - pr_strings;
|
||||
#endif // REHLDS_FIXES
|
||||
if (mod)
|
||||
{
|
||||
SetMinMaxSize(e, mod->mins, mod->maxs, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user