I had this problem with crash below
The only difference is in this function in this line
ReturnValue Player::rewardChestCollect(const Container fromCorpse / = nullptr/, uint32_t maxMoveItems / = 0/) {
std::vector<Item> rewardItemsVector;
if (fromCorpse) {
auto rewardId = fromCorpse->getAttribute(ItemAttribute_t::DATE);
auto reward = getReward(rewardId, false);
rewardItemsVector = getRewardsFromContainer(reward->getContainer());
} else {
rewardItemsVector = getRewardsFromContainer(rewardChest->getContainer());
}
commit:
auto rewardId = fromCorpse->getAttribute(ItemAttribute_t::DATE);
my line:
time_t rewardId = fromCorpse->getIntAttr(ITEM_ATTRIBUTE_DATE);
Could anyone help me with this? is it a commit bug?
Priority
Medium
Area
What happened?
After uploading the two commits: https://github.com/opentibiabr/canary/commit/4015cf2deae83b7105dc9e5de2e269350702f2a4 https://github.com/opentibiabr/canary/commit/6f894a35db680b18bec6117b3fbedbfa735809a8
I had this problem with crash below The only difference is in this function in this line ReturnValue Player::rewardChestCollect(const Container fromCorpse / = nullptr/, uint32_t maxMoveItems / = 0/) { std::vector<Item> rewardItemsVector; if (fromCorpse) { auto rewardId = fromCorpse->getAttribute(ItemAttribute_t::DATE);
auto reward = getReward(rewardId, false);
rewardItemsVector = getRewardsFromContainer(reward->getContainer());
} else {
rewardItemsVector = getRewardsFromContainer(rewardChest->getContainer());
}
commit: auto rewardId = fromCorpse->getAttribute(ItemAttribute_t::DATE);
my line:
time_t rewardId = fromCorpse->getIntAttr(ITEM_ATTRIBUTE_DATE);
Could anyone help me with this? is it a commit bug?
What OS are you seeing the problem on?
Linux
Code of Conduct