]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Merge branch 'terencehill/registry_API' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 55868e5c79d29b6a692b91a78402682a9b16bae8..39201fd72e6a90501281cd6f46e5041e9b1c41f5 100644 (file)
@@ -1229,7 +1229,7 @@ NET_HANDLE(TE_CSQC_PINGPLREPORT, bool isNew)
 NET_HANDLE(TE_CSQC_WEAPONCOMPLAIN, bool isNew)
 {
        int weapon_id = ReadByte();
-       complain_weapon = Weapons_from(weapon_id);
+       complain_weapon = REGISTRY_GET(Weapons, weapon_id);
        complain_weapon_type = ReadByte();
        return = true;