From a81dd798a82acc12ec1c561964b46ec30672e29d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 11 Apr 2015 14:35:32 +0200 Subject: [PATCH] - fixed incorrect memset argument. --- src/resourcefiles/file_directory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resourcefiles/file_directory.cpp b/src/resourcefiles/file_directory.cpp index 2be8da1b14..8b85425f16 100644 --- a/src/resourcefiles/file_directory.cpp +++ b/src/resourcefiles/file_directory.cpp @@ -341,7 +341,7 @@ int FDirectoryLump::FillCache() FileReader *reader = NewReader(); if (reader == NULL) { - memset(Cache, 0, sizeof(Cache)); + memset(Cache, 0, LumpSize); return 0; } reader->Read(Cache, LumpSize);