summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 12:00:14 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 12:00:14 +0000
commit208bf60982e871227b0f59d592e341940ec8d350 (patch)
tree1c738a5f3dd577cba61bf61aed58786da09e704f /crawl-ref/source/libgui.cc
parent23c24bc254411a178a2bebf4b6c2a4f98b1dc21f (diff)
downloadcrawl-ref-208bf60982e871227b0f59d592e341940ec8d350.tar.gz
crawl-ref-208bf60982e871227b0f59d592e341940ec8d350.zip
Fixing crash in the Windows tile version.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4469 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 41ddebde0f..762820e5d1 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -2047,7 +2047,8 @@ void gui_init_view_params(crawl_view_geometry &geom)
geom.mlistsz.x = 0;
geom.mlistsz.y = 0;
- region_tip->resize(geom.hudsz.x, 3);
+ if (region_tip)
+ region_tip->resize(geom.hudsz.x, 3);
region_msg->resize(geom.msgsz.x, geom.msgsz.y);
region_stat->resize(geom.hudsz.x, geom.hudsz.y);