mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-06 05:38:19 +03:00
Fix menuReturnGoto when stack top is not a return address
This commit is contained in:
+1
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user