]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use new registry get method where applicable in the monster code 161158856
authorMario <mario.mario@y7mail.com>
Mon, 29 Jun 2020 12:40:57 +0000 (22:40 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 29 Jun 2020 12:40:57 +0000 (22:40 +1000)
qcsrc/common/monsters/sv_monsters.qc

index bdd8e5159a774480ccdd786ff388610be819f74c..bddfa18458ad8a54b8c1e3dd6442f8e185c68036 100644 (file)
@@ -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)