chore: explicit functional-style cast of weapon_animation getter

This commit is contained in:
Sara 2024-08-28 16:50:05 +02:00
parent 2c5fdfcc3e
commit 51f86e363e

View file

@ -43,7 +43,7 @@ gd::Variant UnitWorldState::get_world_property(gd::String property) {
}
gd::String UnitWorldState::get_weapon_animation() const {
return "melee_attack";
return gd::String("melee_attack");
}
bool UnitWorldState::get_can_see_target() {