Fixed issue with underflow in ScriptAggregator.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-06-12 15:49:37 +02:00
1 parent 3358bf7378
commit 32bb641f75
1 file changed
+3 -1
@@ -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; }