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

This commit is contained in:
Deukhoofd 2020-06-12 15:49:37 +02:00
parent 3358bf7378
commit 32bb641f75
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ namespace CreatureLib::Battling {
inline void Reset() {
_index = 0;
if (_scripts[_index].IsSet()) {
_setIndex = -1;
}
IncrementToNextNotNull(false);
}
inline bool HasNext() { return _index < _size; }