diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-01 21:24:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-01 21:54:48 +0300 |
commit | f5e3f241af190e487c0499dae0efc12e9ae2d202 (patch) | |
tree | 295bac3fa27cfff3c78d664b49b01ff51b723b77 /src/net/eathena/mailrecv.cpp | |
parent | 13c5cc47aca547c1f3ca02e26672557823b844ee (diff) | |
download | mv-f5e3f241af190e487c0499dae0efc12e9ae2d202.tar.gz mv-f5e3f241af190e487c0499dae0efc12e9ae2d202.tar.bz2 mv-f5e3f241af190e487c0499dae0efc12e9ae2d202.tar.xz mv-f5e3f241af190e487c0499dae0efc12e9ae2d202.zip |
Fix code style.
Diffstat (limited to 'src/net/eathena/mailrecv.cpp')
-rw-r--r-- | src/net/eathena/mailrecv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp index b51e418a6..de7945a7d 100644 --- a/src/net/eathena/mailrecv.cpp +++ b/src/net/eathena/mailrecv.cpp @@ -120,21 +120,21 @@ void MailRecv::processReadMail(Net::MessageIn &msg) mail->text = msg.readString(sz, "message"); msg.readUInt8("zero"); mail->strTime = timeToStr(mail->time); - if (!mailWindow) + if (mailWindow == nullptr) { reportAlways("Mail window not created"); delete mail; return; } mailWindow->showMessage(mail, itemId != 0 ? 1 : 0); - if (!mailViewWindow) + if (mailViewWindow == nullptr) { reportAlways("Mail view window not created"); return; } Inventory *const inventory = mailViewWindow->getInventory(); - if (!inventory) + if (inventory == nullptr) { reportAlways("Mail view window missing inventory"); return; |