From 6494b951bb43e6a1da0c6d5579a2afe8f182091f Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sat, 18 Sep 2010 13:04:02 +0200 Subject: [PATCH] mmlcore: LoadFont() did not return True on success. --- Units/MMLCore/fontloader.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/Units/MMLCore/fontloader.pas b/Units/MMLCore/fontloader.pas index 3eca78d..39b9e7f 100644 --- a/Units/MMLCore/fontloader.pas +++ b/Units/MMLCore/fontloader.pas @@ -202,6 +202,7 @@ function TMFonts.LoadFont(const Name: String; Shadow: Boolean): boolean; var f: TMFont; begin + Result := True; if not DirectoryExists(FPath + Name) then begin raise Exception.Create('LoadFont: Directory ' + FPath + Name + ' does not exists.');