Skip to content

Commit

Permalink
carry forward some debugging info from 1.12 bugfix 22086
Browse files Browse the repository at this point in the history
from 1.12 branch, commit e7eb08d
  • Loading branch information
cbeck88 committed Jul 12, 2014
1 parent 2a16fe7 commit 55481f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dialogs.cpp
Expand Up @@ -751,6 +751,11 @@ void save_preview_pane::draw_contents()
surface map_surf(NULL);

if(map_data.empty() == false) {
LOG_DP << "When parsing save summary " << ((*info_)[index_]).name() << std::endl
<< "Did not find a map_data field. Looking in game config for a child [" << summary["campaign_type"] << "] with id " << summary["scenario"] << std::endl;

assert(game_config_ && "ran into a null game config pointer inside a game preview pane");

const std::map<std::string,surface>::const_iterator itor = map_cache_.find(map_data);
if(itor != map_cache_.end()) {
map_surf = itor->second;
Expand Down Expand Up @@ -781,6 +786,8 @@ void save_preview_pane::draw_contents()

ypos = std::max<int>(ypos,map_rect.y + map_rect.h + save_preview_border);
sdl_blit(map_surf,NULL,screen,&map_rect);
} else {
LOG_DP << "Never found a map for savefile " << (*info_)[index_].name() << std::endl;
}

char time_buf[256] = {0};
Expand Down

0 comments on commit 55481f0

Please sign in to comment.