kListen nulladic -- why was I passing a global variable by address?

This commit is contained in:
Iris Lightshard 2018-12-16 20:36:35 -08:00
parent ffeb273fb3
commit 7ec9628655
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 5 additions and 5 deletions

View file

@ -188,7 +188,7 @@ void interact()
} }
} }
void kListen(int* whichKaos) void kListen()
{ {
if (spellbutton) if (spellbutton)
{ {
@ -197,10 +197,10 @@ void kListen(int* whichKaos)
synergize(); synergize();
spellFlag = -1; spellFlag = -1;
} }
if (*whichKaos >= 0) if (kaosFlag >= 0)
{ {
run(rightHere->eventTriggers[*whichKaos]); run(rightHere->eventTriggers[kaosFlag]);
*whichKaos = -1; kaosFlag = -1;
} }
} }

View file

@ -20,7 +20,7 @@ void renderForeground();
void interact(); void interact();
void kListen(int* whichKaos); void kListen();
// system // system