Add resize_initialized and resize_uninitialized to Vector. These functions serve as replacements for resize, to make sure the caller understands whether elements need to be initialized 'by hand' after the call.
This commit is contained in:
@ -118,7 +118,7 @@ Error PCKPacker::add_file_removal(const String &p_target_path) {
|
||||
pf.size = 0;
|
||||
pf.removal = true;
|
||||
|
||||
pf.md5.resize_zeroed(16);
|
||||
pf.md5.resize_initialized(16);
|
||||
|
||||
files.push_back(pf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user