Make String::right count from pos instead of pos+1
This commit is contained in:
parent
1b45a38fb5
commit
56d9faebab
3 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ bool SamplePlayer::_set(const StringName& p_name, const Variant& p_value) {
|
|||
set_voice_count(p_value);
|
||||
else if (name.begins_with("default/")) {
|
||||
|
||||
String what=name.right(7);
|
||||
String what=name.right(8);
|
||||
|
||||
if (what=="volume_db")
|
||||
set_default_volume_db(p_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue