summaryrefslogtreecommitdiff
path: root/src/net/tmwa/buysellrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/buysellrecv.cpp')
-rw-r--r--src/net/tmwa/buysellrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/buysellrecv.cpp b/src/net/tmwa/buysellrecv.cpp
index c4fac1416..004837e50 100644
--- a/src/net/tmwa/buysellrecv.cpp
+++ b/src/net/tmwa/buysellrecv.cpp
@@ -95,7 +95,7 @@ void BuySellRecv::processNpcBuyResponse(Net::MessageIn &msg)
}
// Reset player money since buy dialog already assumed purchase
// would go fine
- if (Ea::BuySellRecv::mBuyDialog)
+ if (Ea::BuySellRecv::mBuyDialog != nullptr)
{
Ea::BuySellRecv::mBuyDialog->setMoney(
PlayerInfo::getAttribute(Attributes::MONEY));