Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build

  • Loading branch information...
commit 6acf1238ee2eaf37a33b9dbc3acb10d696b6c242 1 parent 430ab55
Igor Paliychuk igorko authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  src/GameStateLoad.cpp
  2. +0 −1  src/MenuManager.cpp
2  src/GameStateLoad.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);
}
1  src/MenuManager.cpp
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
Please sign in to comment.
Something went wrong with that request. Please try again.