project_files/HedgewarsMobile/Classes/HogHatViewController.m
changeset 3662 a44406f4369b
parent 3547 02875b1145b7
child 3697 d5b30d6373fc
--- a/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Tue Jul 20 23:30:54 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Thu Jul 22 03:08:17 2010 +0200
@@ -35,12 +35,13 @@
     [normalHogFile release];
     self.normalHogSprite = hogSprite;
     [hogSprite release];
+
+    self.title = NSLocalizedString(@"Change hedgehog's hat",@"");
 }
 
 - (void)viewWillAppear:(BOOL)animated {
     [super viewWillAppear:animated];
-    self.title = [[[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:selectedHog] objectForKey:@"hogname"];
-
+    
     // this updates the hog name and its hat
     [self.tableView reloadData];
     // this moves the tableview to the top
@@ -132,8 +133,8 @@
     self.normalHogSprite = nil;
     self.teamDictionary = nil;
     self.hatArray = nil;
+    MSG_DIDUNLOAD();
     [super viewDidUnload];
-    MSG_DIDUNLOAD();
 }
 
 - (void)dealloc {