1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix compiling

This commit is contained in:
nordsoft 2023-10-11 01:44:58 +02:00
parent 2b88e6941c
commit 7b7aaa36b2

View File

@ -328,7 +328,7 @@ void QuestWidget::on_lKillTargetSelect_clicked()
{
if(auto * o = dynamic_cast<const CGHeroInstance*>(obj))
return o->ID != Obj::PRISON;
if(auto * o = dynamic_cast<const CGCreature*>(obj))
if(dynamic_cast<const CGCreature*>(obj))
return true;
return false;
};