project_files/HedgewarsMobile/Classes/LevelViewController.m
changeset 5982 283be2ca54a7
parent 5208 878e551f0b4a
child 6078 8c0cc07731e5
--- a/project_files/HedgewarsMobile/Classes/LevelViewController.m	Wed Sep 21 15:00:01 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/LevelViewController.m	Wed Sep 21 22:51:52 2011 +0200
@@ -119,7 +119,7 @@
             cell.accessoryType = UITableViewCellAccessoryNone;
         }
         
-        NSString *botlevelPath = [[NSString alloc] initWithFormat:@"%@/%d.png",BOTLEVELS_DIRECTORY(),row+1];
+        NSString *botlevelPath = [[NSString alloc] initWithFormat:@"%@/bot%d.png",[[NSBundle mainBundle] resourcePath],row+1];
         UIImage *levelImage = [[UIImage alloc] initWithContentsOfFile:botlevelPath];
         [botlevelPath release];
         cell.imageView.image = levelImage;