fix initialization order in PlayerInventoryItem
This commit is contained in:
@@ -129,7 +129,7 @@ struct C_Login_Patch_04 {
|
||||
ptext<char, 0x40> email; // Note: this field is blank on BB
|
||||
};
|
||||
|
||||
// 05 (S->C): Unknown
|
||||
// 05 (S->C): Unknown; probably disconnect
|
||||
// No arguments
|
||||
|
||||
// 06 (S->C): Open file for writing
|
||||
|
||||
+3
-3
@@ -529,9 +529,9 @@ PlayerInventoryItem::PlayerInventoryItem()
|
||||
: equip_flags(0x0000), tech_flag(0x0000), game_flags(0x00000000), data() { }
|
||||
|
||||
PlayerInventoryItem::PlayerInventoryItem(const PlayerBankItem& src)
|
||||
: equip_flags((this->data.data1[0] > 2) ? 0x0044 : 0x0050),
|
||||
tech_flag(0x0001),
|
||||
data(src.data) { }
|
||||
: tech_flag(0x0001), data(src.data) {
|
||||
this->equip_flags = (this->data.data1[0] > 2) ? 0x0044 : 0x0050;
|
||||
}
|
||||
|
||||
PlayerBankItem::PlayerBankItem()
|
||||
: data(), amount(0), show_flags(0) { }
|
||||
|
||||
Reference in New Issue
Block a user