mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix gcc build
This commit is contained in:
@@ -419,7 +419,8 @@ std::string MapSettings::getHeroName(int townObjectIdx)
|
|||||||
std::string MapSettings::getMonsterName(int monsterObjectIdx)
|
std::string MapSettings::getMonsterName(int monsterObjectIdx)
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
if([[maybe_unused]] auto monster = dynamic_cast<CGCreature*>(controller.map()->objects[monsterObjectIdx].get()))
|
[[maybe_unused]] auto monster = dynamic_cast<CGCreature*>(controller.map()->objects[monsterObjectIdx].get());
|
||||||
|
if(monster)
|
||||||
{
|
{
|
||||||
//TODO: get proper name
|
//TODO: get proper name
|
||||||
//name = hero->name;
|
//name = hero->name;
|
||||||
|
Reference in New Issue
Block a user