This commit is contained in:
aozhiwei 2020-06-03 15:50:24 +08:00
parent 677f462738
commit 4ce77a7e08

View File

@ -310,7 +310,7 @@ int RoomMgr::AllocRoomIdx()
if (current_room_idx_ < 0) {
current_room_idx_ = 0;
}
if (current_room_idx_ >= (MAX_ROOM_IDX - 1)) {
if (current_room_idx_ >= (MAX_ROOM_IDX - 3)) {
current_room_idx_ = 0;
}
} while (GetRoomByIdx(++current_room_idx_));