summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-05 04:32:12 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-05 04:32:12 +0300
commit9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7 (patch)
tree4397c5b7da9ed6294778fd7432996dd70eaff339 /src
parentf28382b61b02a2d13c7d3f5b63c9e699fc549d22 (diff)
downloadmanaverse-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.gz
manaverse-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.bz2
manaverse-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.xz
manaverse-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.zip
Fix code style
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/guildrecv.cpp10
-rw-r--r--src/net/eathena/inventoryrecv.cpp7
2 files changed, 9 insertions, 8 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index 62577e7b8..4bfea0cf9 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -202,6 +202,9 @@ void GuildRecv::processGuildAlianceInfo(Net::MessageIn &msg)
void GuildRecv::processGuildMemberList(Net::MessageIn &msg)
{
+ if (actorManager == nullptr)
+ return;
+
const int length = msg.readInt16("len");
if (length < 4)
return;
@@ -285,11 +288,8 @@ void GuildRecv::processGuildMemberList(Net::MessageIn &msg)
}
}
taGuild->sort();
- if (actorManager != nullptr)
- {
- actorManager->updatePlayerGuild();
- actorManager->updatePlayerColors();
- }
+ actorManager->updatePlayerGuild();
+ actorManager->updatePlayerColors();
if (socialWindow != nullptr)
socialWindow->updateGuildCounter(onlineNum, totalNum);
}
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index bb2a129b3..eaeb72109 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -1711,7 +1711,7 @@ void InventoryRecv::processInventoryContinue(Net::MessageIn &msg,
items = &Ea::InventoryRecv::mStorageItems;
break;
default:
- reportAlways("Unknown inventory type %d", CAST_S32(invType));
+ reportAlways("Unknown inventory type %d", CAST_S32(invType))
return;
}
@@ -1800,7 +1800,7 @@ void InventoryRecv::processEquipmentContinue(Net::MessageIn &msg,
items = &Ea::InventoryRecv::mStorageItems;
break;
default:
- reportAlways("Unknown inventory type %d", CAST_S32(invType));
+ reportAlways("Unknown inventory type %d", CAST_S32(invType))
return;
}
@@ -1819,7 +1819,8 @@ void InventoryRecv::processEquipmentContinue(Net::MessageIn &msg,
msg.readInt32("hire expire date (?)");
msg.readInt16("equip type");
msg.readInt16("item sprite number");
- ItemOptionsList *options = new ItemOptionsList(msg.readUInt8("option count"));
+ ItemOptionsList *options = new ItemOptionsList(
+ msg.readUInt8("option count"));
for (int f = 0; f < 5; f ++)
{
const uint16_t idx = msg.readInt16("option index");