diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 461110db..8375bde6 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 0 #define VERSION_PATCH 0 -#define VERSION_BUILD 8578 +#define VERSION_BUILD 8579 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/util.cpp b/Adventures in Lestoria/util.cpp index a80f466b..9da8431c 100644 --- a/Adventures in Lestoria/util.cpp +++ b/Adventures in Lestoria/util.cpp @@ -160,7 +160,9 @@ std::string util::GetHash(std::string fileName){ if(hash.size()==std::numeric_limits::max()){ hashChar=hash[hashIndex]; } - hashChar+=file.get()*21-7; + char newChar=file.get(); + if(newChar=='\r'||newChar=='\n')continue; + hashChar+=newChar*21-7; hashChar^=hashIndex; if(hashIndex>0)hashChar+=hash[hashIndex-1]; hashChar%=94; diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index 663bbd83..f127b19d 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ