From 407de0a8d0898b28a587962e997df816cb17b6a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Jun 2017 20:30:47 +0300 Subject: Fix code style. --- src/resources/inventory/inventory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/resources/inventory/inventory.cpp') diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp index 97bb255fe..df7104d03 100644 --- a/src/resources/inventory/inventory.cpp +++ b/src/resources/inventory/inventory.cpp @@ -492,8 +492,12 @@ void Inventory::virtualRestore(const Item *const item, mVirtualRemove[index] -= amount; if (mVirtualRemove[index] < 0) mVirtualRemove.erase(index); - if (index < 0 || index >= CAST_S32(mSize) || (mItems[index] == nullptr)) + if (index < 0 || + index >= CAST_S32(mSize) || + mItems[index] == nullptr) + { return; + } mItems[index]->mQuantity += amount; } } -- cgit v1.2.3-70-g09d2