summaryrefslogtreecommitdiff
path: root/src/trade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trade.c')
-rw-r--r--src/trade.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/trade.c b/src/trade.c
index 60d999edd..f51a9f6e9 100644
--- a/src/trade.c
+++ b/src/trade.c
@@ -19,7 +19,7 @@
#include "load_save.h"
#include "mail.h"
#include "main.h"
-#include "mevent2.h"
+#include "mevent.h"
#include "mystery_gift.h"
#include "overworld.h"
#include "palette.h"
@@ -4655,9 +4655,8 @@ static void CB2_SaveAndEndTrade(void)
if (!InUnionRoom())
IncrementGameStat(GAME_STAT_POKEMON_TRADES);
if (gWirelessCommType)
- {
- RecordIdOfWonderCardSenderByEventType(2, gLinkPlayers[GetMultiplayerId() ^ 1].trainerId);
- }
+ TryIncrementMysteryGiftStat(CARD_STAT_NUM_TRADES, gLinkPlayers[GetMultiplayerId() ^ 1].trainerId);
+
SetContinueGameWarpStatusToDynamicWarp();
sub_8153380();
gMain.state++;