fix more warnings
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user