Use GetSpawnX() methods instead of peeking into some attribute that

may change.
This commit is contained in:
Marco Cawthorne 2021-09-16 18:43:09 +02:00
parent 0613f51e85
commit 271bddb2db
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -312,7 +312,7 @@ monster_scientist::monster_scientist(void)
base_maxs = [16,16,72];
base_health = Skill_GetValue("scientist_health", 20);
CBaseNPC::CBaseNPC();
precache_model(m_oldModel);
precache_model(GetSpawnModel());
if (m_iBody == -1) {
/* This stuff needs to be persistent because we can't guarantee that