Fix error showing after relogging with containers being open
This commit is contained in:
parent
6961492e00
commit
4c4e0b9d07
|
@ -314,9 +314,6 @@ void Game::processCloseContainer(int containerId)
|
||||||
{
|
{
|
||||||
ContainerPtr container = getContainer(containerId);
|
ContainerPtr container = getContainer(containerId);
|
||||||
if(!container) {
|
if(!container) {
|
||||||
/* happens if you close and restart client with container opened
|
|
||||||
* g_logger.traceError("container not found");
|
|
||||||
*/
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,7 +325,6 @@ void Game::processContainerAddItem(int containerId, const ItemPtr& item, int slo
|
||||||
{
|
{
|
||||||
ContainerPtr container = getContainer(containerId);
|
ContainerPtr container = getContainer(containerId);
|
||||||
if(!container) {
|
if(!container) {
|
||||||
g_logger.traceError("container not found");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +335,6 @@ void Game::processContainerUpdateItem(int containerId, int slot, const ItemPtr&
|
||||||
{
|
{
|
||||||
ContainerPtr container = getContainer(containerId);
|
ContainerPtr container = getContainer(containerId);
|
||||||
if(!container) {
|
if(!container) {
|
||||||
g_logger.traceError("container not found");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -350,7 +345,6 @@ void Game::processContainerRemoveItem(int containerId, int slot, const ItemPtr&
|
||||||
{
|
{
|
||||||
ContainerPtr container = getContainer(containerId);
|
ContainerPtr container = getContainer(containerId);
|
||||||
if(!container) {
|
if(!container) {
|
||||||
g_logger.traceError("container not found");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue