BTProbability: Fix incorrect percentage shown

This commit is contained in:
Serhii Snitsaruk 2024-01-31 15:40:43 +01:00
parent c49f5d2b0a
commit ab564eb631
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ void BTProbability::set_run_chance(float p_value) {
} }
String BTProbability::_generate_name() { String BTProbability::_generate_name() {
return vformat("Probability %.1f%%", run_chance); return vformat("Probability %.1f%%", run_chance * 100.0);
} }
BT::Status BTProbability::_tick(double p_delta) { BT::Status BTProbability::_tick(double p_delta) {