Parcourir la source

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

Ivan Savenko il y a 15 ans
Parent
commit
8902aeb3f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 		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);