From 977e4d7e0ac7252aaf89a6d68a2fc0174ab0421e Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Tue, 30 Apr 2024 09:30:04 -0300 Subject: [PATCH] fixing warning of GHA [-Wreorder]. --- src/creatures/creatures_definitions.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/creatures/creatures_definitions.hpp b/src/creatures/creatures_definitions.hpp index 46fb5fe5979..681be75cbcd 100644 --- a/src/creatures/creatures_definitions.hpp +++ b/src/creatures/creatures_definitions.hpp @@ -1646,22 +1646,22 @@ struct LootBlock { struct ShopBlock { uint16_t itemId; - std::string itemName; int32_t itemSubType; uint32_t itemBuyPrice; uint32_t itemSellPrice; int32_t itemStorageKey; int32_t itemStorageValue; - + std::string itemName; std::vector childShop; + ShopBlock() { itemId = 0; - itemName = ""; itemSubType = 0; itemBuyPrice = 0; itemSellPrice = 0; itemStorageKey = 0; itemStorageValue = 0; + itemName = ""; } explicit ShopBlock(uint16_t newItemId, int32_t newSubType = 0, uint32_t newBuyPrice = 0, uint32_t newSellPrice = 0, int32_t newStorageKey = 0, int32_t newStorageValue = 0, std::string newName = "") :