Message2581

Author fluzz
Recipients
Date 2013-09-29.15:45:29
Content
Please re-run same test with the following patch, and see if the assertion is
failing :

diff --git a/src/mapgen/mapgen.c b/src/mapgen/mapgen.c
index bab7f38..abc7d67 100644
--- a/src/mapgen/mapgen.c
+++ b/src/mapgen/mapgen.c
@@ -467,6 +467,7 @@ void mapgen_convert(struct dungeon_info *di, int w, int h, u
 
        i = 0;
        while(tries && n) {
+               assert(i < di->num_rooms);
                if (idx[i] != di->enter && idx[i] != di->exit) {
                        if (make_corridor(idx[i]))
                                n--;
History
Date User Action Args
2013-09-29 15:45:29fluzzsetmessageid: <1380469529.95.0.0575340695948.issue695@freedroid.org>
2013-09-29 15:45:29fluzzlinkissue695 messages
2013-09-29 15:45:29fluzzcreate