project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 3778 2e61bb50cc57
parent 3737 2ba6ac8a114b
child 3781 2bfda544ae48
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Thu Aug 26 22:58:38 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Sat Aug 28 00:30:29 2010 +0200
@@ -55,7 +55,7 @@
                                                         error:NULL];
     }
 
-    NSDictionary *theWeapon;
+    NSDictionary *theWeapon = nil;
     switch (type) {
         case 0: //default
             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys: