mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
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:
+7
-2
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user