Make String::right count from pos instead of pos+1

This commit is contained in:
marynate 2014-05-12 18:45:04 +08:00
parent 1b45a38fb5
commit 56d9faebab
3 changed files with 4 additions and 4 deletions

View file

@ -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);