From 55481f00574d9061db1672e46e6523fec453c6bd Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Fri, 11 Jul 2014 20:59:11 -0400 Subject: [PATCH] carry forward some debugging info from 1.12 bugfix 22086 from 1.12 branch, commit e7eb08d0cd2d57b55bf084b669fbeec8d283db33 --- src/dialogs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dialogs.cpp b/src/dialogs.cpp index b00f95a54e5e..d40835d3b83c 100644 --- a/src/dialogs.cpp +++ b/src/dialogs.cpp @@ -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::const_iterator itor = map_cache_.find(map_data); if(itor != map_cache_.end()) { map_surf = itor->second; @@ -781,6 +786,8 @@ void save_preview_pane::draw_contents() ypos = std::max(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};