From 887f39c8352313ba5ed4763194702273ce81d810 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 19 Oct 2010 21:41:04 +0000 Subject: [PATCH] fix language toggle --- source/menu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/menu.cpp b/source/menu.cpp index 6f6103b..e482a75 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -3564,11 +3564,15 @@ static int MenuSettingsMenu() break; case 5: GCSettings.language++; + + if(GCSettings.language >= LANG_LENGTH) + GCSettings.language = LANG_JAPANESE; if(GCSettings.language == LANG_SIMP_CHINESE) GCSettings.language = LANG_PORTUGUESE; else if(GCSettings.language == LANG_JAPANESE) GCSettings.language = LANG_ENGLISH; + break; }