diff --git a/compile b/compile
index abd76511e88f159a477bc09438bb30afd863d325..d0a52d7749a4908d69586805bf4be5a141f73a97 100755
--- a/compile
+++ b/compile
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 # Will add all *.tw files to StoryIncludes.
+./sanityCheck
 rm -f src/config/start.tw
 cp src/config/start.tw.proto start.tw.tmp
 find src -name '*.tw' -print >>start.tw.tmp
diff --git a/compile.bat b/compile.bat
index 101572bc00c66d3b507e40fd27fdf297bc96f6ca..3ef0b723fc8e988968672ceb9ab617adc7e26087 100644
--- a/compile.bat
+++ b/compile.bat
@@ -2,7 +2,6 @@
 :: Free Cities Basic Compiler - Windows
 
 :: Will add all *.tw files to StoryIncludes.
-./sanityCheck
 del src\config\start.tw
 copy src\config\start.tw.proto start.tw.tmp >nul
 >>start.tw.tmp (for /r "src" %%F in (*.tw) do echo %%F)