From: Mario Date: Mon, 29 Jun 2020 12:40:57 +0000 (+1000) Subject: Use new registry get method where applicable in the monster code X-Git-Tag: xonotic-v0.8.5~7^2~1^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fpipelines%2F161158856;p=xonotic%2Fxonotic-data.pk3dir.git Use new registry get method where applicable in the monster code --- diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index bdd8e5159a..bddfa18458 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -857,7 +857,7 @@ void Monster_Dead_Think(entity this) { this.nextthink = time + this.ticrate; - Monster mon = Monsters_from(this.monsterid); + Monster mon = REGISTRY_GET(Monsters, this.monsterid); mon.mr_deadthink(mon, this); if(this.monster_lifetime != 0)