From 7ec962865589322f07358b1165a8c94a018f5b4a Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Sun, 16 Dec 2018 20:36:35 -0800 Subject: [PATCH] kListen nulladic -- why was I passing a global variable by address? --- Engine.c | 8 ++++---- Engine.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Engine.c b/Engine.c index 06bcb7f..5803bb6 100644 --- a/Engine.c +++ b/Engine.c @@ -188,7 +188,7 @@ void interact() } } -void kListen(int* whichKaos) +void kListen() { if (spellbutton) { @@ -197,10 +197,10 @@ void kListen(int* whichKaos) synergize(); spellFlag = -1; } - if (*whichKaos >= 0) + if (kaosFlag >= 0) { - run(rightHere->eventTriggers[*whichKaos]); - *whichKaos = -1; + run(rightHere->eventTriggers[kaosFlag]); + kaosFlag = -1; } } diff --git a/Engine.h b/Engine.h index 36e4664..f083e8d 100644 --- a/Engine.h +++ b/Engine.h @@ -20,7 +20,7 @@ void renderForeground(); void interact(); -void kListen(int* whichKaos); +void kListen(); // system