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)
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
Engine.h
2
Engine.h
|
@ -20,7 +20,7 @@ void renderForeground();
|
||||||
|
|
||||||
void interact();
|
void interact();
|
||||||
|
|
||||||
void kListen(int* whichKaos);
|
void kListen();
|
||||||
|
|
||||||
// system
|
// system
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue