Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldLayout.cpp
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:11:55 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:30:27 +0100
commitcd23817bf1884fee4457ab3381320b0c8fc33f48 (patch)
tree9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/game/StarWorldLayout.cpp
parent28d486446ca176ef0168a7284d85cb49a75a54fb (diff)
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
Diffstat (limited to 'source/game/StarWorldLayout.cpp')
-rw-r--r--source/game/StarWorldLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarWorldLayout.cpp b/source/game/StarWorldLayout.cpp
index 58eca08..fd73190 100644
--- a/source/game/StarWorldLayout.cpp
+++ b/source/game/StarWorldLayout.cpp
@@ -629,7 +629,7 @@ void WorldLayout::expandBiomeRegion(Vec2I const& position, int newWidth) {
pair<size_t, size_t> WorldLayout::findLayerAndCell(int x, int y) const {
// find the target layer
- size_t targetLayerIndex;
+ size_t targetLayerIndex{};
for (size_t i = 0; i < m_layers.size(); ++i) {
if (m_layers[i].yStart < y)
targetLayerIndex = i;