summaryrefslogtreecommitdiffstats
path: root/core/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/command.c')
-rw-r--r--core/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c
index 05f361be31..17b01686f2 100644
--- a/core/command.c
+++ b/core/command.c
@@ -2154,7 +2154,8 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
case MP_CMD_QUIT:
mpctx->stop_play = PT_QUIT;
- mpctx->quit_player_rc = cmd->args[0].v.i;
+ mpctx->quit_custom_rc = cmd->args[0].v.i;
+ mpctx->has_quit_custom_rc = true;
break;
case MP_CMD_QUIT_WATCH_LATER: