Fix missing default textures and possibly very fast speeds crashing rendering on projectile weapons #1369

This commit is contained in:
Bernhard Bonigl committed 2015-01-30 14:58:53 +01:00
1 parent 74e180d561
commit 1992829430
1 file changed
+2
@@ -278,6 +278,8 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
float count = icons.get(-1).length - 1;
int step = Math.round(progress * count);
step = Math.min(0, step);
if(icons.containsKey(id))
return icons.get(id)[step];