diff UI/UiGame.cpp @ 1661:e1d1fe32c194

NPCTopics
author Ritor1
date Wed, 18 Sep 2013 14:19:37 +0600
parents d453ed393d6e
children 620b6ba3e6b8
line wrap: on
line diff
--- a/UI/UiGame.cpp	Wed Sep 18 11:05:06 2013 +0600
+++ b/UI/UiGame.cpp	Wed Sep 18 14:19:37 2013 +0600
@@ -395,14 +395,14 @@
 
     case DIALOGUE_PROFESSION_DETAILS:
     {
-      auto prof = pNPCStats->pProfessions + pNPC->uProfession - 1;
+      //auto prof = pNPCStats->pProfessions[pNPC->uProfession];
 
       if (dialogue_show_profession_details)
-        pInString = BuildDialogueString(prof->pBenefits, uActiveCharacter - 1, 0, 0, 0, 0);
+        pInString = BuildDialogueString(pNPCStats->pProfessions[pNPC->uProfession].pBenefits, uActiveCharacter - 1, 0, 0, 0, 0);
       else if (pNPC->Hired())
-        pInString = BuildDialogueString(prof->pDismissText, uActiveCharacter - 1, 0, 0, 0, 0);
+        pInString = BuildDialogueString(pNPCStats->pProfessions[pNPC->uProfession].pDismissText, uActiveCharacter - 1, 0, 0, 0, 0);
       else
-        pInString = BuildDialogueString(prof->pJoinText, uActiveCharacter - 1, 0, 0, 0, 0);
+        pInString = BuildDialogueString(pNPCStats->pProfessions[pNPC->uProfession].pJoinText, uActiveCharacter - 1, 0, 0, 0, 0);
     }
     break;