From 3a66ee3f707c461beaa82305f563d06e798fc889 Mon Sep 17 00:00:00 2001 From: Thomas Kirsten Date: Mon, 7 Apr 2014 19:04:40 +0200 Subject: [PATCH] fix array index being to big, causes #6118 --- src/mapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 743fa1f51f5b7..bc4b3f7bb4e25 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -13034,7 +13034,7 @@ void map::add_extra(map_extra type) if (rng(1, 9) >= trig_dist(x, y, i, j)) { marlossify(i, j); if (one_in(15)) { - monster creature(GetMType(monids[rng(0, 5)])); + monster creature(GetMType(monids[rng(0, 4)])); creature.spawn(i, j); g->add_zombie(creature); }