|
|
|
@ -70,6 +70,9 @@ void mwmp::WorldController::closeContainer(const MWWorld::Ptr &container)
|
|
|
|
|
{
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->clearCurrentContainer();
|
|
|
|
|
|
|
|
|
|
// If the player died while in a container, the container's Ptr could be invalid now
|
|
|
|
|
if (!container.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Container \"%s\" (%d) is closed.",
|
|
|
|
|
container.getCellRef().getRefId().c_str(),
|
|
|
|
|
container.getCellRef().getRefNum().mIndex);
|
|
|
|
@ -80,5 +83,7 @@ void mwmp::WorldController::closeContainer(const MWWorld::Ptr &container)
|
|
|
|
|
LOG_APPEND(Log::LOG_VERBOSE, " - Item. Refid: \"%s\" Count: %d",
|
|
|
|
|
iter->getCellRef().getRefId().c_str(), iter->getRefData().getCount());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->updateInventory();
|
|
|
|
|
}
|
|
|
|
|