This isn't the actual code, but a simplified version of something I accidentally did:
Code:
local var = true;
if (var)
{
print ("Output when true\n");
}
else (!var)
{
print ("Output when false\n");
}
I meant to have an else if condition. Squirrel compiles and executes it no problem, and prints both output conditions. C++ refuses to compile this kind of mistake. I know this was my own fault, but I think Squirrel should catch this early.
I know I'm a little behind in versions, so apologies if this is a known bug.
Thanks