Fix BTWaitTicks counting prematurely

This commit is contained in:
Serhii Snitsaruk 2023-09-08 11:19:19 +02:00
parent 6baa6d5686
commit e1604fab67
1 changed files with 1 additions and 1 deletions

View File

@ -23,8 +23,8 @@ void BTWaitTicks::_enter() {
} }
int BTWaitTicks::_tick(double p_delta) { int BTWaitTicks::_tick(double p_delta) {
num_passed += 1;
if (num_passed < num_ticks) { if (num_passed < num_ticks) {
num_passed += 1;
return RUNNING; return RUNNING;
} else { } else {
return SUCCESS; return SUCCESS;