file.cpp

changeset 32
5d22b7ecf110
parent 30
31ff9aabd506
child 38
20f5eaae8425
--- a/file.cpp	Tue Mar 19 15:32:16 2013 +0200
+++ b/file.cpp	Tue Mar 19 16:36:08 2013 +0200
@@ -352,6 +352,9 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 void reloadAllSubfiles () {
+	if (!g_CurrentFile)
+		return;
+	
 	// First, close all but the current open file.
 	for (ushort i = 0; i < g_LoadedFiles.size(); ++i)
 		if (g_LoadedFiles[i] != g_CurrentFile)

mercurial