fix flag wind speed to use correct uint type (#2600)

This commit is contained in:
Adam Bird 2023-03-08 13:08:54 -05:00 committed by GitHub
parent 2117d98178
commit 60f4f71495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ void Ship::SetWindSettingsFactoryV0::ParseFileBinary(std::shared_ptr<BinaryReade
setWind->settings.windWest = reader->ReadInt8(); setWind->settings.windWest = reader->ReadInt8();
setWind->settings.windVertical = reader->ReadInt8(); setWind->settings.windVertical = reader->ReadInt8();
setWind->settings.windSouth = reader->ReadInt8(); setWind->settings.windSouth = reader->ReadInt8();
setWind->settings.windSpeed = reader->ReadInt8(); setWind->settings.windSpeed = reader->ReadUByte();
} }
} // namespace Ship } // namespace Ship

View File

@ -12,7 +12,7 @@ typedef struct {
int8_t windWest; int8_t windWest;
int8_t windVertical; int8_t windVertical;
int8_t windSouth; int8_t windSouth;
int8_t windSpeed; uint8_t windSpeed;
} WindSettings; } WindSettings;
class SetWindSettings : public SceneCommand { class SetWindSettings : public SceneCommand {