Fix functions all having the same ID on call. Closes #1

Honestly, this is why i want =? in this lang. This bug is silly and i hate it
This commit is contained in:
Curle 2020-09-12 02:54:12 +01:00
parent a3ca8e621b
commit 7fe6a34613
Signed by: TheCurle
GPG Key ID: 2F2E62F0DA69A5AE

View File

@ -312,7 +312,7 @@ struct ASTNode* CallFunction() {
int FuncID; int FuncID;
//TODO: Test structural type! //TODO: Test structural type!
if((FuncID == FindSymbol(CurrentIdentifier)) == -1 && (Symbols[FuncID].Structure == ST_FUNC)) if((FuncID = FindSymbol(CurrentIdentifier)) == -1 && (Symbols[FuncID].Structure == ST_FUNC))
DieMessage("Undeclared function", CurrentIdentifier); DieMessage("Undeclared function", CurrentIdentifier);
VerifyToken(LI_LPARE, "("); VerifyToken(LI_LPARE, "(");