diff options
-rw-r--r-- | crawl-ref/source/arena.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc index f3ff332ab9..1617f916d0 100644 --- a/crawl-ref/source/arena.cc +++ b/crawl-ref/source/arena.cc @@ -659,6 +659,14 @@ namespace arena if (a_spawners.size() == 0 || b_spawners.size() == 0) return; + if (faction_a.active_members == 0 || faction_b.active_members == 0) + { + mpr("ERROR: Both sides have spawners, but the active member " + "count of one side has been reduced to zero!", MSGCH_ERROR); + more(); + return; + } + for (unsigned int i = 0; i < a_spawners.size(); i++) { int idx = a_spawners[i]; |