mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 11:22:17 -05:00
Ship::BinaryReader::ReadString: Fix endian issue
This commit is contained in:
parent
67e98d43b7
commit
32672e58e7
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user