kListen nulladic -- why was I passing a global variable by address?
This commit is contained in:
parent
ffeb273fb3
commit
7ec9628655
2 changed files with 5 additions and 5 deletions
8
Engine.c
8
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
Engine.h
2
Engine.h
|
@ -20,7 +20,7 @@ void renderForeground();
|
|||
|
||||
void interact();
|
||||
|
||||
void kListen(int* whichKaos);
|
||||
void kListen();
|
||||
|
||||
// system
|
||||
|
||||
|
|
Loading…
Reference in a new issue