diff --git a/src/statistics.cpp b/src/statistics.cpp index 03e9d7405f..f12a458dc0 100644 --- a/src/statistics.cpp +++ b/src/statistics.cpp @@ -400,6 +400,8 @@ static void StoreLevelStats() { unsigned int i; + if (gamestate != GS_LEVEL) return; + if (!(level.flags2&LEVEL2_NOSTATISTICS)) // don't consider maps that were excluded from statistics { for(i=0;i