Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37791842
en ru br
ALT Linux repos
S:3.13.0-alt3

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


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;
 	}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin