summaryrefslogtreecommitdiff
path: root/common/texfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/texfont.cpp')
-rw-r--r--common/texfont.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/texfont.cpp b/common/texfont.cpp
index 252b72b..fa3fe0f 100644
--- a/common/texfont.cpp
+++ b/common/texfont.cpp
@@ -6,6 +6,7 @@
#include "project.h"
#include "texfont.h"
#include "texture.h"
+#include "library.h"
#include "file.h"
#define LC_TEXFONT_FILE_VERSION 1 // LeoCAD 0.74
@@ -55,7 +56,7 @@ bool TexFont::FileLoad (File& file)
memset (buf, 0, 32);
file.Read (buf, 8);
- m_pTexture = project->FindTexture (buf);
+ m_pTexture = project->GetPiecesLibrary()->FindTexture (buf);
if (m_pTexture == NULL)
{
console.PrintError ("Cannot find texture for font %s.\n", buf);