]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/deathtypes/all.qc
Increase gametype limit to 32
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / deathtypes / all.qc
index 4fdafa9a82b6a5d54f92b9349eb9e3098f13f597..6bc2995b232b2cc57a051c41b16b83957107b5ad 100644 (file)
@@ -3,7 +3,7 @@
 string Deathtype_Name(int deathtype)
 {
        if (DEATH_ISSPECIAL(deathtype)) {
-               entity deathent = Deathtypes[deathtype - DT_FIRST];
+               entity deathent = REGISTRY_GET(Deathtypes, deathtype - DT_FIRST);
                if (!deathent) { backtrace("Deathtype_Name: Could not find deathtype entity!\n"); return ""; }
                return deathent.nent_name;
        }