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:
parent
c45d037bc8
commit
8902aeb3f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user