mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-02 18:24:15 +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
|
||||
{
|
||||
// otherwise copy the classname
|
||||
Q_strncpy( pe->name, STRING( ed->v.classname ), sizeof( pe->name ));
|
||||
// otherwise copy the modelname
|
||||
Q_strncpy( pe->name, mod->name, sizeof( pe->name ));
|
||||
}
|
||||
|
||||
pe->model = pe->studiomodel = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user