Clear controller values on disconnect

This commit is contained in:
MysterD 2022-05-28 00:22:13 -07:00
parent f5d69402a9
commit 8a02578315
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ void network_shutdown(bool sendLeaving, bool exiting) {
extern s16 gChangeLevel;
gChangeLevel = LEVEL_CASTLE_GROUNDS;
network_player_init();
memset(gMarioStates[0].controller, 0, sizeof(struct Controller));
extern s16 gMenuMode;
gMenuMode = -1;