mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-13 19:58:21 +00:00
Merge pull request #1042 from EmosewaMC/FixSkills
Fix SwitchMultiple incorrect handling
This commit is contained in:
commit
3202b5a36e
@ -22,13 +22,9 @@ void SwitchMultipleBehavior::Handle(BehaviorContext* context, RakNet::BitStream*
|
|||||||
for (unsigned int i = 0; i < this->m_behaviors.size(); i++) {
|
for (unsigned int i = 0; i < this->m_behaviors.size(); i++) {
|
||||||
|
|
||||||
const double data = this->m_behaviors.at(i).first;
|
const double data = this->m_behaviors.at(i).first;
|
||||||
|
trigger = i;
|
||||||
|
|
||||||
if (value <= data) {
|
if (value <= data) break;
|
||||||
|
|
||||||
trigger = i;
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* behavior = this->m_behaviors.at(trigger).second;
|
auto* behavior = this->m_behaviors.at(trigger).second;
|
||||||
|
Loading…
Reference in New Issue
Block a user