diff options
Diffstat (limited to 'saga/resfile.cpp')
-rw-r--r-- | saga/resfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/resfile.cpp b/saga/resfile.cpp index ba1029e174..e8d4d5687b 100644 --- a/saga/resfile.cpp +++ b/saga/resfile.cpp @@ -129,7 +129,7 @@ bool ResourceFile::loadResource(int32 rn, byte **res, int32 *res_len) { assert(res != NULL && res_len != NULL); *res = NULL; - *res_len = NULL; + *res_len = 0; if (!R_PBOUNDS(rn, _resTblCt)) { return false; @@ -151,7 +151,7 @@ bool ResourceFile::loadResource(int32 rn, byte **res, int32 *res_len) { *res = new_res; *res_len = new_res_len; - + return true; } |