mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 05:27:41 +00:00
CGameExporter: Use string construction over .data() passthrough
This way the string will take into the account the total size of the string view instead of effectively running strlen() over the pointer, allowing non-null-terminated strings to properly work.
This commit is contained in:
@@ -188,7 +188,7 @@ bool CGameExporter::ExtractDiscData()
|
||||
nod::ExtractionContext Context;
|
||||
Context.force = false;
|
||||
Context.progressCB = [&](const std::string_view rkDesc, float ProgressPercent) {
|
||||
mpProgress->Report((int) (ProgressPercent * 10000), 10000, rkDesc.data());
|
||||
mpProgress->Report((int) (ProgressPercent * 10000), 10000, TString(rkDesc));
|
||||
};
|
||||
|
||||
TString FilesDir = AbsDiscDir + "files/";
|
||||
|
||||
Reference in New Issue
Block a user