hedgewars/uAmmos.pas
changeset 3075 b4ef08187d22
parent 3052 1d60306f6b34
child 3114 3a3d1ee2ebd0
--- a/hedgewars/uAmmos.pas	Fri Mar 26 12:16:12 2010 +0000
+++ b/hedgewars/uAmmos.pas	Fri Mar 26 12:34:18 2010 +0000
@@ -88,7 +88,7 @@
     ammos: TAmmoCounts;
     substr: shortstring; // TEMPORARY
 begin
-TryDo(byte(s[0]) = byte(ord(High(TAmmoType))) * 4, 'Invalid ammo scheme (incompatible frontend)', true);
+TryDo(byte(s[0]) = byte(ord(High(TAmmoType))) * 4, 'Invalid ammo scheme (incompatible frontend; got: ' + inttostr(byte(s[0]) div 4) + ', expected: ' + inttostr(ord(High(TAmmoType))) + ')', true);
 
 // FIXME - TEMPORARY hardcoded check on shoppa pending creation of crate *type* probability editor
 substr:= Copy(s,1,15);