# HG changeset patch
# User nemo
# Date 1383230812 14400
# Node ID 267c0005baafb40e940bf6bf784b46f2372d5cfb
# Parent  e9c00dd31b07f4b5a7c62178397b1d14c70c32ab
Prevent using SetAmmo to set amNothing to anything.

diff -r e9c00dd31b07 -r 267c0005baaf hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Wed Oct 30 15:54:29 2013 -0400
+++ b/hedgewars/uAmmos.pas	Thu Oct 31 10:46:52 2013 -0400
@@ -224,6 +224,7 @@
     CurWeapon: PAmmo;
     a: TAmmoType;
 begin
+if ammo = amNothing then exit;
 {$HINTS OFF}
 FillChar(ammos, sizeof(ammos), 0);
 {$HINTS ON}