summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-01-17 20:28:08 +0000
committersmatz <smatz@openttd.org>2010-01-17 20:28:08 +0000
commit3850b5912f80250526b953da5bf6359199aabc85 (patch)
treec4a40a95048cde40cdb60d511f4c2ca28fd436f7 /src/genworld_gui.cpp
parent75395dc8ce51521f27653220158552e99ebc492d (diff)
downloadopenttd-3850b5912f80250526b953da5bf6359199aabc85.tar.xz
(svn r18850) -Fix [FS#3540]: don't allow screen redraw when the landscape contains broken slopes
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 20417b68f..9fae22386 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -1250,6 +1250,7 @@ static void _SetGeneratingWorldProgress(gwp_class cls, uint progress, uint total
if (total == 0) {
assert(_tp.cls == _generation_class_table[cls]);
_tp.current += progress;
+ assert(_tp.current <= _tp.total);
} else {
_tp.cls = _generation_class_table[cls];
_tp.current = progress;