project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3926 668b71f31e51
parent 3923 694e6f6e0e30
child 3930 8b00b4f93242
--- a/project_files/HedgewarsMobile/Classes/GameSetup.m	Mon Oct 04 00:00:42 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameSetup.m	Wed Oct 06 02:31:04 2010 +0200
@@ -123,7 +123,7 @@
     NSString *update = @"";
 
     // if we're loading an older version of ammos fill the engine message with 0s
-    int diff = CURRENT_AMMOSIZE - [[ammoData objectForKey:@"version"] intValue];
+    int diff = HW_getNumberOfWeapons() - [[ammoData objectForKey:@"version"] intValue];
     if (diff != 0)
         update = [NSString stringWithCharacters:(const unichar*)"0000000000000000000000000000000000" length:diff];