- fixed incorrect memset argument.

This commit is contained in:
Christoph Oelckers 2015-04-11 14:35:32 +02:00
parent 1e8f362217
commit a81dd798a8

View file

@ -341,7 +341,7 @@ int FDirectoryLump::FillCache()
FileReader *reader = NewReader(); FileReader *reader = NewReader();
if (reader == NULL) if (reader == NULL)
{ {
memset(Cache, 0, sizeof(Cache)); memset(Cache, 0, LumpSize);
return 0; return 0;
} }
reader->Read(Cache, LumpSize); reader->Read(Cache, LumpSize);