Navigation Menu

Skip to content

Commit

Permalink
If loading a world file fails, report the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Nov 27, 2013
1 parent cf98163 commit 1a731fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xml/xml_load_world.cpp
Expand Up @@ -616,7 +616,10 @@ void CMUSHclientDoc::LoadError (const char * sType, const char * sMessage, UINT
sType, // type of thing (eg, trigger)
ENDLINE);

ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, SCRIPTERRORBACKCOLOUR, str);
if (m_pLinePositions == NULL)
::AfxMessageBox (str);
else
ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, SCRIPTERRORBACKCOLOUR, str);

iErrorCount++;
} // end of CMUSHclientDoc::LoadError
Expand Down

0 comments on commit 1a731fc

Please sign in to comment.