1
This commit is contained in:
parent
fe635a39e0
commit
0c2618e240
@ -30,7 +30,7 @@ void BtContext::AddHandler(CreatureWeakPtr target, std::weak_ptr<EventHandlerPtr
|
||||
BtContext::~BtContext()
|
||||
{
|
||||
for (auto& tuple : handlers) {
|
||||
if (std::get<0>(tuple).Get()) {
|
||||
if (std::get<0>(tuple).Get() && !std::get<1>(tuple).expired()) {
|
||||
std::get<0>(tuple).Get()->GetTrigger()->RemoveEventHandler(std::get<1>(tuple));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user