Fix menuReturnGoto when stack top is not a return address

This commit is contained in:
kichikuou
2023-02-10 21:24:13 +09:00
parent 1d863cfb2e
commit ae8becc4a3
+1 -2
View File
@@ -503,8 +503,7 @@ void sl_returnGoto(int address) {
int *tmp = sl_pop();
int page;
while (TRUE) {
if (*tmp != STACK_FARJMP || *tmp != STACK_NEARJMP) break;
while (*tmp != STACK_FARJMP && *tmp != STACK_NEARJMP) {
if (*tmp == STACK_TXXSTATE) {
popState(tmp);
} else if (*tmp == STACK_VARIABLE) {