From 65bafe9141e02180ca76d7d05c984c99b428b43b Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Fri, 1 May 2026 16:43:58 +0800 Subject: [PATCH] fix: safe_int_to_biome not include river --- src/gameplay/biome.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameplay/biome.cpp b/src/gameplay/biome.cpp index 337977e..b48447c 100644 --- a/src/gameplay/biome.cpp +++ b/src/gameplay/biome.cpp @@ -152,7 +152,7 @@ BiomeHeightRange get_biome_height_range(Biome biome) { Biome safe_int_to_biome(int x) { using enum Biome; static const std::unordered_map INT_TO_BIOME_MAP{ - {0, PLAIN}, {1, FOREST}, {2, DESERT}, {3, MOUNTAIN}}; + {0, PLAIN}, {1, FOREST}, {2, DESERT}, {3, MOUNTAIN}, {4, RIVER}}; auto it = INT_TO_BIOME_MAP.find(x); ASSERT_MSG(it != INT_TO_BIOME_MAP.end(), ":Can't Find");