1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed possible crash on having selectable reward with no visual image

This commit is contained in:
Ivan Savenko
2024-04-25 14:04:45 +03:00
parent 7f732b6d0a
commit 1dc962804e
3 changed files with 16 additions and 5 deletions

View File

@@ -386,6 +386,7 @@ void CInfoBar::pushComponents(const std::vector<Component> & components, std::st
reward_map.at(0).first.push_back(c);
reward_map.at(0).second = 8; //At most 8, cannot be more
break;
case ComponentType::NONE:
case ComponentType::SEC_SKILL:
reward_map.at(1).first.push_back(c);
reward_map.at(1).second = 4; //At most 4