Browse Source

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

Ivan Savenko 15 years ago
parent
commit
8902aeb3f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hch/CLodHandler.cpp

+ 1 - 1
hch/CLodHandler.cpp

@@ -77,7 +77,7 @@ unsigned char * CLodHandler::giveFile(std::string defName, int * length)
 	{
 	{
 		int result;
 		int result;
 		unsigned char * outp = new unsigned char[ourEntry->realSize];
 		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) {
 		if (f) {
 			result = fread(outp,1,ourEntry->realSize,f);
 			result = fread(outp,1,ourEntry->realSize,f);
 			fclose(f);
 			fclose(f);