Permalink
Browse files

Fix build

  • Loading branch information...
1 parent 430ab55 commit 6acf1238ee2eaf37a33b9dbc3acb10d696b6c242 @igorko igorko committed Sep 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −1 src/GameStateLoad.cpp
  2. +0 −1 src/MenuManager.cpp
View
@@ -307,7 +307,7 @@ void GameStateLoad::loadPreview(int slot) {
for (unsigned int i=0; i<equipped[slot].size(); i++) {
if ((unsigned)equipped[slot][i] > items->items.size()-1){
- fprintf(stderr, "Item with id=%d not found. Your savegame is broken or you might use incompatible savegame/mod\nQuitting to avoid savegame rewriting\n", equipped[slot][i]);
+ fprintf(stderr, "Item with id=%d out of bounds 1-%d. Your savegame is broken or you might use incompatible savegame/mod\nQuitting to avoid savegame rewriting\n", equipped[slot][i], items->items.size()-1);
SDL_Quit();
exit(1);
}
View
@@ -170,7 +170,6 @@ void MenuManager::loadIcons() {
if(!icons) {
fprintf(stderr, "Couldn't load icons: %s\n", IMG_GetError());
SDL_Quit();
- exit(1);
}
// optimize

0 comments on commit 6acf123

Please sign in to comment.