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

@@ -121,7 +121,7 @@ namespace Interlude
if (m_Items.find(data.objectId) == m_Items.end())
{
auto item = m_Factory.Create(data);
const auto item = m_Factory.Create(data);
if (item) {
m_Items[data.objectId] = item;
}
@@ -197,6 +197,7 @@ namespace Interlude
Services::ServiceLocator::GetInstance().GetEventDispatcher()->Subscribe(Events::OnEndItemListEvent::name, [this](const Events::Event& evt) {
OnEndItemList(evt);
});
m_NetworkHandler.RequestItemList();
}
private: