aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sky.dsp4
-rw-r--r--sky/text.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/sky.dsp b/sky.dsp
index bd9b797e93..63e5fb592e 100644
--- a/sky.dsp
+++ b/sky.dsp
@@ -187,6 +187,10 @@ SOURCE=.\sky\struc.h
# End Source File
# Begin Source File
+SOURCE=.\sky\text.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\sky\timer.cpp
# End Source File
# End Group
diff --git a/sky/text.cpp b/sky/text.cpp
index 30440a8ae0..7423462e6e 100644
--- a/sky/text.cpp
+++ b/sky/text.cpp
@@ -97,7 +97,7 @@ void SkyState::getText(uint32 textNr) { //load text #"textNr" to _textBuffer
uint32 fileNo = (sectionNo >> 2);
fileNo += ((_language * NO_OF_TEXT_SECTIONS) + 60600);
- _itemList[FIRST_TEXT_SEC + sectionNo] = (void *)loadFile(fileNo, NULL);
+ _itemList[FIRST_TEXT_SEC + sectionNo] = (void *)loadFile((uint16)fileNo, NULL);
}
uint8 *textItemPtr = (uint8 *)_itemList[FIRST_TEXT_SEC + sectionNo];