Try and catch more edge cases where setIndex would be invalid.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -25,6 +25,9 @@ namespace CreatureLib::Battling {
|
||||
_index++;
|
||||
while (HasNext()) {
|
||||
if (_scripts[_index].HasValue()) {
|
||||
if (_scripts[_index].IsSet()) {
|
||||
_setIndex = -1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
_index++;
|
||||
|
||||
Reference in New Issue
Block a user