From 2cc7fe2bf07a1af89547eb7d124cf5cb110944a2 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sun, 4 Dec 2022 09:14:55 +0100 Subject: [PATCH] Fix callcount typo --- src/p_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_spec.c b/src/p_spec.c index 82337d2f6..5c9caa82f 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1882,7 +1882,7 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller // "Trigger on X calls" linedefs reset if args[2] is set if (specialtype == 321 && triggerline->args[2]) - triggerline->callcount = triggerline->args[3]; + triggerline->callcount = triggerline->args[1]; else { // These special types work only once