From 06cc22fd8f0d27b49eafca96839c11660f02f57c Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Fri, 22 Jan 2016 22:33:08 -0800 Subject: [PATCH] - fix wx 2.8 support --- source/glest_map_editor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_map_editor/main.cpp b/source/glest_map_editor/main.cpp index 96d44576..d0d76763 100644 --- a/source/glest_map_editor/main.cpp +++ b/source/glest_map_editor/main.cpp @@ -146,7 +146,7 @@ void MainWindow::init(string fname) { #elif wxCHECK_VERSION(2, 9, 1) #else - glCanvas->SetCurrent(); + if(glCanvas) glCanvas->SetCurrent(); //printf("setcurrent #2\n"); #endif