mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-02 06:12:19 -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 Ship::BinaryReader::ReadString()
|
||||||
{
|
{
|
||||||
std::string res;
|
std::string res;
|
||||||
int numChars = reader->ReadInt32();
|
int numChars = ReadInt32();
|
||||||
for (int i = 0; i < numChars; i++) {
|
for (int i = 0; i < numChars; i++) {
|
||||||
res += reader->ReadChar();
|
res += reader->ReadChar();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user