[Scummvm-git-logs] scummvm master -> 383b074e911ee297f2fed25ca9d200afccb370fc

mduggan noreply at scummvm.org
Wed Mar 22 09:07:23 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
383b074e91 TETRAEDGE: Fix crash on starting game


Commit: 383b074e911ee297f2fed25ca9d200afccb370fc
    https://github.com/scummvm/scummvm/commit/383b074e911ee297f2fed25ca9d200afccb370fc
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-03-22T18:07:04+09:00

Commit Message:
TETRAEDGE: Fix crash on starting game

Changed paths:
    engines/tetraedge/game/in_game_scene.cpp


diff --git a/engines/tetraedge/game/in_game_scene.cpp b/engines/tetraedge/game/in_game_scene.cpp
index 14fbe1e4221..32e4b39ec71 100644
--- a/engines/tetraedge/game/in_game_scene.cpp
+++ b/engines/tetraedge/game/in_game_scene.cpp
@@ -1775,6 +1775,9 @@ void InGameScene::updateScroll() {
 		error("No root layout in the background");
 	_scrollOffset = TeVector2f32();
 	TeIntrusivePtr<TeTiledTexture> rootTex = root->_tiledSurfacePtr->tiledTexture();
+	// During startup root texture is not yet loaded
+	if (!rootTex)
+		return;
 	const TeVector2s32 texSize = rootTex->totalSize();
 	if (texSize._x < 801) {
 		if (texSize._y < 601) {




More information about the Scummvm-git-logs mailing list