[dasher: 1/38] Fix crash when entering Game Mode with Control Mode on



commit 0a9770fd4ae71f70caf06ec3b1dc4e14a21c8dc4
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Fri Nov 25 19:44:29 2011 +0000

    Fix crash when entering Game Mode with Control Mode on

 Src/DasherCore/DasherInterfaceBase.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Src/DasherCore/DasherInterfaceBase.cpp b/Src/DasherCore/DasherInterfaceBase.cpp
index 9cadc4e..a868644 100644
--- a/Src/DasherCore/DasherInterfaceBase.cpp
+++ b/Src/DasherCore/DasherInterfaceBase.cpp
@@ -307,8 +307,8 @@ void CDasherInterfaceBase::EnterGameMode(CGameModule *pGameModule) {
   if (CWordGeneratorBase *pWords = m_pNCManager->GetAlphabetManager()->GetGameWords()) {
     if (!pGameModule) pGameModule=CreateGameModule();
     m_pGameModule=pGameModule;
-    m_pGameModule->SetWordGenerator(m_pNCManager->GetAlphabet(), pWords);
     m_pNCManager->updateControl();
+    m_pGameModule->SetWordGenerator(m_pNCManager->GetAlphabet(), pWords);
   } else {
     ///TRANSLATORS: %s is the name of the alphabet; the string "GameTextFile"
     /// refers to a setting name in gsettings or equivalent, and should not be translated.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]