fix: remove exception throwing from game threads

This commit is contained in:
k0t9i
2023-10-26 22:13:23 +04:00
parent ee11faf0ce
commit 604ba8af9b
4 changed files with 34 additions and 24 deletions

View File

@@ -120,11 +120,14 @@ namespace Interlude
if (m_Skills.find(skillId) == m_Skills.end())
{
m_Skills[skillId] = m_Factory.Create(
const auto newSkill = m_Factory.Create(
skillInfo[2],
skillInfo[1],
skillInfo[0]
);
if (newSkill) {
m_Skills[skillId] = newSkill;
}
}
else
{