fixed string operator[], which was broken. Closes #2202
This commit is contained in:
parent
cd3dfdaf18
commit
32a6120a5c
1 changed files with 2 additions and 2 deletions
|
@ -1003,7 +1003,7 @@ void Variant::set(const Variant& p_index, const Variant& p_value, bool *r_valid)
|
|||
return;
|
||||
}
|
||||
|
||||
*str = str->substr(0,idx-1)+chr+str->substr(idx+1,str->length());
|
||||
*str = str->substr(0,idx)+chr+str->substr(idx+1,str->length());
|
||||
valid=true;
|
||||
return;
|
||||
|
||||
|
@ -1364,7 +1364,7 @@ void Variant::set(const Variant& p_index, const Variant& p_value, bool *r_valid)
|
|||
valid=true;
|
||||
v->b=float(p_value)/255.0;
|
||||
return;
|
||||
} else if (*str=="a8" ) {
|
||||
} else if (*str=="a8" ) {\
|
||||
valid=true;
|
||||
v->a=float(p_value)/255.0;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue