Fix overread in projectile behavior and address broken stuns (#898)

* Fix overread in projectile behavior

* Fix stuns

* Correctly read in bitStream
This commit is contained in:
David Markowitz
2022-12-19 12:52:00 -08:00
committed by GitHub
parent d69f733772
commit 2fdcf62ec6
5 changed files with 9 additions and 4 deletions

View File

@@ -45,12 +45,13 @@ uint32_t BehaviorContext::GetUniqueSkillId() const {
}
void BehaviorContext::RegisterSyncBehavior(const uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext) {
void BehaviorContext::RegisterSyncBehavior(const uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext, bool ignoreInterrupts) {
auto entry = BehaviorSyncEntry();
entry.handle = syncId;
entry.behavior = behavior;
entry.branchContext = branchContext;
entry.ignoreInterrupts = ignoreInterrupts;
this->syncEntries.push_back(entry);
}