fix: send HeroDeletedEvent only if hero actually removed
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Interlude
|
||||
}
|
||||
result[hero->objectId] = m_Hero;
|
||||
}
|
||||
else {
|
||||
else if (m_Hero) {
|
||||
m_Hero = nullptr;
|
||||
EventDispatcher::GetInstance().Dispatch(HeroDeletedEvent{});
|
||||
}
|
||||
|
Reference in New Issue
Block a user