1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix some issues detected by Sonar & code review, fix build

This commit is contained in:
Ivan Savenko
2025-04-01 19:11:12 +03:00
parent 586620a290
commit 93b18ee94b
34 changed files with 86 additions and 128 deletions

View File

@@ -161,7 +161,7 @@ void CQuestLog::recreateLabelList()
MetaString text;
questPtr->getRolloverText(GAME->interface()->cb.get(), text, false);
if (quests[i].obj)
if (quests[i].obj.hasValue())
{
if (auto seersHut = dynamic_cast<const CGSeerHut *>(questObject))
{