diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index 6bc54097..fafd6c3c 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -249,17 +249,17 @@ void Incubator::SpawnWaveMon(int wave) if (wave >= room->pve_mode_meta->waves.size()) { abort(); } + if (room->pve_data.refreshed_mon > 0 && + room->pve_data.mon_num <= 0) { + timeout_ = true; + return; + } if (wave > 0 && room->IsDestoryRoom()) { return; } if (room->IsGameOver()) { return; } - if (room->pve_data.refreshed_mon > 0 && - room->pve_data.mon_num <= 0) { - timeout_ = true; - return; - } auto& mons = room->pve_mode_meta->waves[wave]; for (MetaData::PveGeminiContent* content : mons) { room->xtimer.AddDeadLineTimerAndAttach