mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed continue keyword, was pointing at break's target
This commit is contained in:
@@ -617,7 +617,7 @@ static unsigned int writeInstructionWhileThen(Toy_ModuleBuilder** mb, Toy_AstWhi
|
||||
|
||||
unsigned int diff = depth - (*mb)->currentScopeDepth;
|
||||
|
||||
OVERWRITE_INT(mb, code, addr, CURRENT_ADDRESS(mb, code) - (addr + 8)); //tell continue to return to the start AFTER reading the instruction
|
||||
OVERWRITE_INT(mb, code, addr, beginAddr - (addr + 8)); //tell continue to return to the start AFTER reading the instruction
|
||||
OVERWRITE_INT(mb, code, addr, diff);
|
||||
|
||||
//tick down
|
||||
|
||||
Reference in New Issue
Block a user