Minor fixes for ScriptAggregator
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
96cbd594a0
commit
33f796eff8
|
@ -7,16 +7,16 @@
|
|||
|
||||
namespace CreatureLib::Battling {
|
||||
class ScriptAggregator {
|
||||
const ScriptWrapper* _scripts;
|
||||
size_t _size;
|
||||
size_t _index = 0;
|
||||
size_t _setIndex = 0;
|
||||
const ScriptWrapper *_scripts;
|
||||
i32 _size;
|
||||
i32 _index = 0;
|
||||
i32 _setIndex = 0;
|
||||
|
||||
inline void IncrementToNextNotNull(bool initialIncrement = true) {
|
||||
if (_scripts[_index].IsSet()) {
|
||||
_setIndex++;
|
||||
if (_setIndex >= _scripts[_index].GetScriptSet()->Count()) {
|
||||
_setIndex = 0;
|
||||
if (_setIndex >= (i32) _scripts[_index].GetScriptSet()->Count()) {
|
||||
_setIndex = -1;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue