Fix bug in inlining of empty for() initializer

It was causing an exception. Fixed now.

Thanks to Cindy Reynaud for reporting the problem and sending a backtrace.
This commit is contained in:
Sei Lisa 2019-02-02 00:47:04 +01:00
parent 65f217afa8
commit 128005e889
4 changed files with 27 additions and 2 deletions

View file

@ -0,0 +1,10 @@
default
{
state_entry()
{
for (; llSetRegionPos(<0,0,2>); llSleep(3))
{
llSleep(4);
}
}
}

View file

@ -0,0 +1,15 @@
default
{
state_entry()
{
@___for__00001;
if (llSetRegionPos(<0, 0, 2>))
{
{
llSleep(4);
}
llSleep(3);
jump ___for__00001;
}
}
}

View file

@ -0,0 +1 @@
main.py -y -O clear,inline -