--- a/MapEdit.cpp
+++ b/MapEdit.cpp
@@ -548,7 +548,7 @@
 {
   int ret;
 
-	ret=((CChitemDlg *) AfxGetMainWnd())->check_map();
+	ret=((CChitemDlg *) AfxGetMainWnd())->check_worldmap();
   if(ret)
   {
     MessageBox(lasterrormsg,"Worldmap editor",MB_ICONEXCLAMATION|MB_OK);