1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-26 08:41:13 +02:00

Small fix to correct *.def loading outsize of *.lod

This commit is contained in:
Ivan Savenko 2010-08-26 13:49:23 +00:00
parent c45d037bc8
commit 8902aeb3f9

View File

@ -77,7 +77,7 @@ unsigned char * CLodHandler::giveFile(std::string defName, int * length)
{
int result;
unsigned char * outp = new unsigned char[ourEntry->realSize];
FILE * f = fopen((myDir + "/" + ourEntry->nameStr).c_str(), "rb");
FILE * f = fopen((myDir + "/" + ourEntry->realName).c_str(), "rb");
if (f) {
result = fread(outp,1,ourEntry->realSize,f);
fclose(f);