cocoaTouch/otherSrc/CommodityFunctions.m
changeset 3339 d558bc5a73c5
parent 3335 2520ee7a5484
child 3340 96dd168b080b
--- a/cocoaTouch/otherSrc/CommodityFunctions.m	Mon Apr 12 21:51:09 2010 +0000
+++ b/cocoaTouch/otherSrc/CommodityFunctions.m	Tue Apr 13 14:39:05 2010 +0000
@@ -23,7 +23,7 @@
     
     for (int i = 0; i < MAX_HOGS; i++) {
         NSString *hogName = [[NSString alloc] initWithFormat:@"hedgehog %d",i];
-        NSDictionary *hog = [[NSDictionary alloc] initWithObjectsAndKeys:@"100",@"health", @"0",@"level",
+	NSDictionary *hog = [[NSDictionary alloc] initWithObjectsAndKeys:@"100",@"health", [NSNumber numberWithInt:0],@"level",
                              hogName,@"hogname", @"NoHat",@"hat", nil];
         [hogName release];
         [hedgehogs addObject:hog];