Fix: CTD on MeLoDY website if player has no active mercs

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7249 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-05-31 20:09:52 +00:00
parent b824267154
commit be52b5bf76
12 changed files with 167 additions and 113 deletions
+7 -2
View File
@@ -82,10 +82,10 @@ public:
void Display();
/*
* Sometimes a refresh inside the class isn't enough - best example is closing the dropdown area, after whcih te previous background cannot be restored by this class.
* Sometimes a refresh inside the class isn't enough - best example is closing the dropdown area, after which the previous background cannot be restored by this class.
* In that case, the background and this class has to be redrawn.
* This function is called internally whenver such a refreh is necessary.
* It has to be defined in derived classes and should notify your dialogues to redraw at apporpiate times
* It has to be defined in derived classes and should notify your dialogues to redraw at appropriate times
*
* This function has to be implemented!
*/
@@ -158,6 +158,11 @@ public:
*/
BOOLEAN IsDisplayed() { return mfMouseRegionsCreated; }
/*
* Do we have data to display?
*/
BOOLEAN HasEntries( ) { return !mEntryVector.empty(); }
// call to open/close the drop down
void OpenDropDownRegionCallBack(MOUSE_REGION * pRegion, INT32 iReason );
void CloseDropDownRegionCallBack(MOUSE_REGION * pRegion, INT32 iReason );