diff -r 2378ada8a6ee -r a44406f4369b project_files/HedgewarsMobile/Classes/HogHatViewController.m --- 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 {