From 94543467822401b407f4b061268e42d59d6a905b Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Wed, 1 Jan 2020 08:19:48 +0100 Subject: ENGINES: Copy the data referenced by QualifiedGameDescriptor The engineId, gameId and description come from static data in the game engines. When the game engines are compiled as dynamic plugins, the QGD structure may outlive the engine plugin. Making a copy ensures the data remains available. Fixes #11292. --- gui/editgamedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/editgamedialog.cpp') diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp index c2953dc8e5..6c553f8783 100644 --- a/gui/editgamedialog.cpp +++ b/gui/editgamedialog.cpp @@ -121,7 +121,7 @@ EditGameDialog::EditGameDialog(const String &domain) // GAME: Determine the description string String description(ConfMan.get("description", domain)); - if (description.empty() && qgd.description) { + if (description.empty() && !qgd.description.empty()) { description = qgd.description; } -- cgit v1.2.3