aboutsummaryrefslogtreecommitdiff
path: root/saga/font.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-07 14:54:11 +0000
committerEugene Sandulenko2005-08-07 14:54:11 +0000
commitdf1076b97adb07333a66840dbe887864d6dc473c (patch)
tree68c96c3bcbc8e1578ec83252c069ceea23489da5 /saga/font.h
parentd3b229b0517440017e7793197921f2086cf83f3b (diff)
downloadscummvm-rg350-df1076b97adb07333a66840dbe887864d6dc473c.tar.gz
scummvm-rg350-df1076b97adb07333a66840dbe887864d6dc473c.tar.bz2
scummvm-rg350-df1076b97adb07333a66840dbe887864d6dc473c.zip
Fix bug #1252289 'ITE: Crash with "paws game"'. And now game pauze is
mapped to key 'z'. svn-id: r18626
Diffstat (limited to 'saga/font.h')
-rw-r--r--saga/font.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/saga/font.h b/saga/font.h
index df0137ed04..9ef83bb50f 100644
--- a/saga/font.h
+++ b/saga/font.h
@@ -118,6 +118,11 @@ class Font {
error("Font::validate: Invalid font id.");
}
}
+
+ bool loaded(FontId fontId) {
+ return !((fontId < 0) || (fontId >= _loadedFonts));
+ }
+
private:
void loadFont(uint32 fontResourceId);