diff options
Diffstat (limited to 'sword2/resman.cpp')
-rw-r--r-- | sword2/resman.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp index a92ac23cf9..bd4eddd450 100644 --- a/sword2/resman.cpp +++ b/sword2/resman.cpp @@ -525,8 +525,8 @@ byte *ResourceManager::openResource(uint32 res, bool dump) { sprintf(buf, "dumps/%s-%d.dmp", tag, res); #endif - if (!out.open(buf, "")) { - if (out.open(buf, "", File::kFileWriteMode)) + if (!out.open(buf, File::kFileReadMode, "")) { + if (out.open(buf, File::kFileWriteMode, "")) out.write(_resList[res].ptr, len); } |