mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 08:08:02 +00:00
engine: server: sv_pmove: use model name for physent name to avoid crash when classname isn't initialized yet
This commit is contained in:
parent
8647110a10
commit
7f9025e178
@ -80,8 +80,8 @@ static qboolean SV_CopyEdictToPhysEnt( physent_t *pe, edict_t *ed )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// otherwise copy the classname
|
// otherwise copy the modelname
|
||||||
Q_strncpy( pe->name, STRING( ed->v.classname ), sizeof( pe->name ));
|
Q_strncpy( pe->name, mod->name, sizeof( pe->name ));
|
||||||
}
|
}
|
||||||
|
|
||||||
pe->model = pe->studiomodel = NULL;
|
pe->model = pe->studiomodel = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user