shaderpatch: fix crashing(?)

This commit is contained in:
somewhatlurker
2019-10-21 01:33:59 +11:00
parent 4ae7845971
commit 97817d306e
@@ -213,7 +213,7 @@ void hookedLoadFromFarcThunk(FArchivedFile** ppFile)
if (modifiedStr.length() > 0)
{
free(file.data);
//free(file.data);
file.data = _strdup(modifiedStr.c_str());
file.dataSize = modifiedStr.size();
printf("[ShaderPatch] Patched %s\n", file.fileName.GetCharBuf());