From 7869cb4137fcc48a4725110dd5767265aa812a42 Mon Sep 17 00:00:00 2001 From: pkmnsnfrn Date: Sun, 11 Aug 2024 19:31:52 -0700 Subject: [PATCH] Improved RemoveAllItem --- src/scrcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrcmd.c b/src/scrcmd.c index 955b5e00dd..12ec041895 100644 --- a/src/scrcmd.c +++ b/src/scrcmd.c @@ -2476,6 +2476,6 @@ void ScriptSetDoubleBattleFlag(struct ScriptContext *ctx) void RemoveAllItem(struct ScriptContext *ctx) { - u16 itemId = VarGet(ScriptReadHalfword(ctx)); + u32 itemId = VarGet(ScriptReadHalfword(ctx)); RemoveBagItem(itemId, CountTotalItemQuantityInBag(itemId)); }