Group :: Games/Strategy
RPM: megaglest
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: megaglest-3.13.0-alt-fixes.patch
Download
Download
diff --git a/source/glest_game/facilities/components.cpp b/source/glest_game/facilities/components.cpp
index 43f1f11..909d61f 100644
--- a/source/glest_game/facilities/components.cpp
+++ b/source/glest_game/facilities/components.cpp
@@ -399,7 +399,7 @@ bool GraphicLabel::mouseMove(int x, int y) {
}
int useWidth = w;
- if(text.length() > 0 && font3D != NULL) {
+ if(text.length() > 0 && font3D != NULL && font3D->getTextHandler() != NULL) {
float lineWidth = (font3D->getTextHandler()->Advance(text.c_str()) * Shared::Graphics::Font::scaleFontValue);
useWidth = (int)lineWidth;
}