mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-10 22:24:29 +00:00
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:
@@ -499,7 +499,7 @@ struct _VariantCall {
|
||||
PoolByteArray::Read r = ba->read();
|
||||
CharString cs;
|
||||
cs.resize(ba->size() + 1);
|
||||
copymem(cs.ptr(), r.ptr(), ba->size());
|
||||
copymem(cs.ptrw(), r.ptr(), ba->size());
|
||||
cs[ba->size()] = 0;
|
||||
|
||||
s = cs.get_data();
|
||||
|
||||
Reference in New Issue
Block a user