This commit is contained in:
gsemaj
2022-07-17 21:10:56 -07:00
committed by gsemaj
parent d631ca1aa1
commit c6528eb2ac
3 changed files with 2 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ void Buff::onTick() {
if(stack.durationTicks > 0) stack.durationTicks--;
if(stack.durationTicks == 0) {
it = stacks.erase(it);
stack.onExpire(self, &stack);
if(stack.onExpire != nullptr) stack.onExpire(self, &stack);
} else it++;
}
}