diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-10-16 11:05:17 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-10-16 11:05:17 -0700 |
commit | e5549ae35fed284799115aed7e67049e5107c988 (patch) | |
tree | de041d9e81e7576272fcb8b8ab7fc09f1f203b80 /src/map/map.cpp | |
parent | 33bbbf30f461b030c04e4de866cafafce19d5232 (diff) | |
download | tmwa-e5549ae35fed284799115aed7e67049e5107c988.tar.gz tmwa-e5549ae35fed284799115aed7e67049e5107c988.tar.bz2 tmwa-e5549ae35fed284799115aed7e67049e5107c988.tar.xz tmwa-e5549ae35fed284799115aed7e67049e5107c988.zip |
Fix crash on login due to invalid map
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r-- | src/map/map.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index 3d14637..dbb54d6 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -327,6 +327,11 @@ void map_foreachinarea(std::function<void(dumb_ptr<block_list>)> func, { std::vector<dumb_ptr<block_list>> bl_list; + // there are some broadcasts during startup + // disable then + if (m == borrow(undefined_gat)) + abort(); + if (x0 < 0) x0 = 0; if (y0 < 0) |