Группа :: Игры/Стратегия
Пакет: megaglest
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: megaglest-3.13.0-alt-fixes.patch
Скачать
Скачать
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;
}