Fixed incorrect handling of 0x1a character in credit files

(which can happen in unicode, previously stk would stop
reading files after 0x1a).
This commit is contained in:
hiker 2015-09-28 00:38:41 +10:00
parent f543ba4f7b
commit 0e90042a0d

View File

@ -143,7 +143,7 @@ void CreditsScreen::loadedFromFile()
std::string creditsfile = file_manager->getAsset("CREDITS");
std::ifstream file( creditsfile.c_str() ) ;
std::ifstream file( creditsfile.c_str(), std::ios::binary ) ;
if (file.fail() || !file.is_open() || file.eof())
{