Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37710907
en ru br
Репозитории ALT

Группа :: Игры/Стратегия
Пакет: 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;
 	}
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin