Fixed issue with underflow in ScriptAggregator.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3358bf7378
commit
32bb641f75
@ -40,7 +40,9 @@ namespace CreatureLib::Battling {
|
||||
|
||||
inline void Reset() {
|
||||
_index = 0;
|
||||
_setIndex = -1;
|
||||
if (_scripts[_index].IsSet()) {
|
||||
_setIndex = -1;
|
||||
}
|
||||
IncrementToNextNotNull(false);
|
||||
}
|
||||
inline bool HasNext() { return _index < _size; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user