project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 4362 8dae325dc625
parent 4356 d1d26f8963a3
child 4454 42bfc1a70968
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sun Nov 28 01:58:43 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sun Nov 28 23:49:09 2010 +0100
@@ -410,7 +410,7 @@
             if (IS_DUALHEAD() || self.useClassicMenu == NO) {
                 if (self.amvc == nil)
                     self.amvc = [[AmmoMenuViewController alloc] init];
-
+                setAmmoMenuInstance(amvc);
                 if (self.amvc.isVisible) {
                     doDim();
                     [self.amvc disappear];
@@ -421,6 +421,7 @@
                     }
                 }
             } else {
+                setAmmoMenuInstance(nil);
                 HW_ammoMenu();
             }
             break;