From 60f4f71495a03deae30204f2a03c028bd03f161f Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Wed, 8 Mar 2023 13:08:54 -0500 Subject: [PATCH] fix flag wind speed to use correct uint type (#2600) --- .../resource/importer/scenecommand/SetWindSettingsFactory.cpp | 2 +- soh/soh/resource/type/scenecommand/SetWindSettings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/resource/importer/scenecommand/SetWindSettingsFactory.cpp b/soh/soh/resource/importer/scenecommand/SetWindSettingsFactory.cpp index f22a9c2d8..f4d3be08b 100644 --- a/soh/soh/resource/importer/scenecommand/SetWindSettingsFactory.cpp +++ b/soh/soh/resource/importer/scenecommand/SetWindSettingsFactory.cpp @@ -37,7 +37,7 @@ void Ship::SetWindSettingsFactoryV0::ParseFileBinary(std::shared_ptrsettings.windWest = reader->ReadInt8(); setWind->settings.windVertical = reader->ReadInt8(); setWind->settings.windSouth = reader->ReadInt8(); - setWind->settings.windSpeed = reader->ReadInt8(); + setWind->settings.windSpeed = reader->ReadUByte(); } } // namespace Ship diff --git a/soh/soh/resource/type/scenecommand/SetWindSettings.h b/soh/soh/resource/type/scenecommand/SetWindSettings.h index b51bdf839..2a8825fc7 100644 --- a/soh/soh/resource/type/scenecommand/SetWindSettings.h +++ b/soh/soh/resource/type/scenecommand/SetWindSettings.h @@ -12,7 +12,7 @@ typedef struct { int8_t windWest; int8_t windVertical; int8_t windSouth; - int8_t windSpeed; + uint8_t windSpeed; } WindSettings; class SetWindSettings : public SceneCommand {