Mercurial > mm7
changeset 1518:091c5eb46a0e
Fix size of byte_5111F6, it must include unk_511206 (as byte).
author | yoctozepto |
---|---|
date | Wed, 04 Sep 2013 15:27:01 +0200 |
parents | c3da3c2985b8 |
children | 4c787c28ddce |
files | UI/UICharacter.cpp mm7_data.cpp mm7_data.h |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/UI/UICharacter.cpp Wed Sep 04 14:34:59 2013 +0200 +++ b/UI/UICharacter.cpp Wed Sep 04 15:27:01 2013 +0200 @@ -1764,7 +1764,7 @@ } } } - memset(byte_5111F6.data(), 0, 16); + memset(byte_5111F6.data(), 0, sizeof(byte_5111F6)); for (uint i = 0; i < 4; ++i) { auto player = pParty->pPlayers + i;
--- a/mm7_data.cpp Wed Sep 04 14:34:59 2013 +0200 +++ b/mm7_data.cpp Wed Sep 04 15:27:01 2013 +0200 @@ -1012,7 +1012,7 @@ char pStartingMapName[32]; // idb std::array<unsigned __int8, 5> IsPlayerWearingWatersuit; std::array<char, 54> party_has_equipment; -std::array<char, 16> byte_5111F6; +std::array<char, 17> byte_5111F6; int _unused000; // weak
--- a/mm7_data.h Wed Sep 04 14:34:59 2013 +0200 +++ b/mm7_data.h Wed Sep 04 15:27:01 2013 +0200 @@ -660,7 +660,7 @@ extern char pStartingMapName[32]; // idb extern std::array<unsigned __int8, 5> IsPlayerWearingWatersuit; extern std::array<char, 54> party_has_equipment; -extern std::array<char, 16> byte_5111F6; +extern std::array<char, 17> byte_5111F6; extern std::array<unsigned int, 16> papredoll_dbrds; extern int bRingsShownInCharScreen; // weak