Ship::BinaryReader::ReadString: Fix endian issue

This commit is contained in:
GaryOderNichts 2022-10-23 19:30:42 +02:00 committed by m4xw
parent 67e98d43b7
commit 32672e58e7

View File

@ -203,7 +203,7 @@ Color3b Ship::BinaryReader::ReadColor3b()
std::string Ship::BinaryReader::ReadString()
{
std::string res;
int numChars = reader->ReadInt32();
int numChars = ReadInt32();
for (int i = 0; i < numChars; i++) {
res += reader->ReadChar();
}