Skip to content

Commit

Permalink
fix array index being to big, causes CleverRaven#6118
Browse files Browse the repository at this point in the history
  • Loading branch information
BevapDin committed Apr 7, 2014
1 parent dff9795 commit 3a66ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3a66ee3

Please sign in to comment.