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