Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
parent
7dfba3cda9
commit
bc2e8d99e5
62 changed files with 148 additions and 147 deletions
|
|
@ -429,7 +429,7 @@ Error ProjectSettings::_load_settings_binary(const String p_path) {
|
|||
uint32_t vlen = f->get_32();
|
||||
Vector<uint8_t> d;
|
||||
d.resize(vlen);
|
||||
f->get_buffer(d.ptr(), vlen);
|
||||
f->get_buffer(d.ptrw(), vlen);
|
||||
Variant value;
|
||||
Error err = decode_variant(value, d.ptr(), d.size());
|
||||
ERR_EXPLAIN("Error decoding property: " + key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue