fix more warnings

This commit is contained in:
2022-06-27 13:33:24 +02:00
parent 19062b5c77
commit 16006adc6e

View File

@@ -154,7 +154,7 @@ const Color* World::GetTileColor(TilePtr tile) const {
return &m_DecorationPalette[towerTile->color_palette_ref]; return &m_DecorationPalette[towerTile->color_palette_ref];
break; break;
} }
case TileType::None: { default: {
return nullptr; return nullptr;
} }
} }
@@ -220,7 +220,7 @@ void World::CleanDeadMobs() {
for (std::size_t i = 0; i < m_Mobs.size(); i++) { for (std::size_t i = 0; i < m_Mobs.size(); i++) {
MobPtr mob = m_Mobs[i]; MobPtr mob = m_Mobs[i];
if (mob->IsDead()) { if (mob->IsDead()) {
m_Mobs.erase(m_Mobs.begin() + i); m_Mobs.erase(m_Mobs.begin() + static_cast<int>(i));
} }
} }
} }