Skip to content

Commit

Permalink
Fixed for not send log of internalDecayItem failed (opentibiabr#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Dec 4, 2022
1 parent 7d863fd commit bee95fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/items/decay/decay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ void Decay::internalDecayItem(Item* item)
}
g_game().transformItem(item, static_cast<uint16_t>(it.decayTo));
} else {
if (item->getLoadedFromMap()) {
return;
}

ReturnValue ret = g_game().internalRemoveItem(item);
if (ret != RETURNVALUE_NOERROR) {
SPDLOG_ERROR("[Decay::internalDecayItem] - internalDecayItem failed, "
Expand Down

0 comments on commit bee95fd

Please sign in to comment.