From 0de2cb69ad279d1a1d39c16194522a7a0d3fd41c Mon Sep 17 00:00:00 2001 From: Lupus Date: Thu, 17 Mar 2005 20:45:06 +0000 Subject: added 84 new cards removed NULLPO warning from my trade.c anti-spoof check. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1246 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/trade.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/trade.c') diff --git a/src/map/trade.c b/src/map/trade.c index 7bb6f77f5..62dd65831 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -76,8 +76,8 @@ void trade_tradeack(struct map_session_data *sd, int type) { npc_event_dequeue(target_sd); //close STORAGE window if it's open. It protects from spooffing packets [Lupus] - nullpo_retv(stor=account2storage2(sd->status.account_id)); - if(stor->storage_status == 1) { + stor=account2storage2(sd->status.account_id); + if(stor!=NULL && stor->storage_status == 1) { if (sd->state.storage_flag) //is it Guild Storage or Common storage_guild_storageclose(sd); else -- cgit v1.2.3-60-g2f50