]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: replace missed replacement of weaponentity[i] to weaponchild
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 30 Oct 2015 12:01:57 +0000 (23:01 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 30 Oct 2015 12:01:57 +0000 (23:01 +1100)
qcsrc/server/g_world.qc

index 01e69f4be3eaa69fbf6be1872d2932aa5502222b..bcb068308d384d75997b78473ce6c227d86b394b 100644 (file)
@@ -1490,8 +1490,8 @@ void FixIntermissionClient(entity e)
                        if(e.weaponentity[slot])
                        {
                                e.weaponentity[slot].effects = EF_NODRAW;
-                               if (e.weaponentity[slot].weaponentity[slot])
-                                       e.weaponentity[slot].weaponentity[slot].effects = EF_NODRAW;
+                               if (e.weaponentity[slot].weaponchild)
+                                       e.weaponentity[slot].weaponchild.effects = EF_NODRAW;
                        }
                }
                if(IS_REAL_CLIENT(e))