aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/saga.cpp')
-rw-r--r--engines/saga/saga.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index df13f36f0a..4cd0c1a381 100644
--- a/engines/saga/saga.cpp
+++ b/engines/saga/saga.cpp
@@ -391,11 +391,20 @@ const char *SagaEngine::getTextString(int textStringId) {
const char *string;
int lang = 0;
- if (getLanguage() == Common::DE_DEU)
- lang = 1;
-
- if (getLanguage() == Common::IT_ITA)
- lang = 2;
+ switch (getLanguage()) {
+ case Common::DE_DEU:
+ lang = 1;
+ break;
+ case Common::ES_ESP:
+ lang = 2;
+ break;
+ case Common::IT_ITA:
+ lang = 3;
+ break;
+ default:
+ lang = 0;
+ break;
+ }
string = ITEinterfaceTextStrings[lang][textStringId];
if (!string)