1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-30 16:29:55 +00:00

stack overflow fix

This commit is contained in:
Blake Warner 2022-02-19 08:37:22 -05:00
parent 41bd8fe0d1
commit 525d226ca6

View File

@ -540,32 +540,32 @@ static bool operator>=(s32 a, Timer b)
static bool operator==(s32 a, Timer b)
{
return b == a;
return b.operator==(a);
}
static bool operator!=(s32 a, Timer b)
{
return b != a;
return b.operator!=(a);
}
static Timer operator*(s32 a, Timer b)
{
return Timer(a) * b;
return b.operator*(a);
}
static Timer operator/(s32 a, Timer b)
{
return Timer(a) / b;
return Timer(a).operator/(b);
}
static Timer operator+(s32 a, Timer b)
{
return Timer(a) + b;
return b.operator+(a);
}
static Timer operator-(s32 a, Timer b)
{
return Timer(a) - b;
return Timer(a).operator-(b);
}