fix: change Tower to TowerPtr

This commit is contained in:
2021-09-19 18:40:24 +02:00
parent b34ebd9417
commit 8db50b7cb0

View File

@@ -321,8 +321,8 @@ bool World::saveMap(const std::string& fileName) const {
void World::tick(std::uint64_t delta) {
moveMobs(delta);
for(Tower& tower : m_Towers){
tower.tick(delta);
for(TowerPtr tower : m_Towers){
tower->tick(delta);
}
}