fix div by zero
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:53:07 +0000 (13:53 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:53:07 +0000 (13:53 +0300)
qcsrc/client/hud.qc

index 5bb8307..27f802b 100644 (file)
@@ -669,7 +669,7 @@ vector HUD_Panel_GetMinSize(float id)
                        mySize_y = 0.5898; // 0.5898 * width, reason: bg has weird dimensions...
                        break;
        }
-       if(!mySize_x)
+       if(!mySize_x && mySize_y)
                mySize_x = 1/mySize_y;
        return mySize;
 }