mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r18637) -Fix [FS#3428]: check whether the content list is empty before trying to draw it
This commit is contained in:
parent
9cefcdab82
commit
e7efb42a27
@ -435,6 +435,9 @@ public:
|
||||
|
||||
void DrawMatrix(const Rect &r) const
|
||||
{
|
||||
/* Is there something to do? */
|
||||
if (this->content.Length() == 0) return;
|
||||
|
||||
const NWidgetBase *nwi_checkbox = this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX);
|
||||
const NWidgetBase *nwi_name = this->GetWidget<NWidgetBase>(NCLWW_NAME);
|
||||
const NWidgetBase *nwi_type = this->GetWidget<NWidgetBase>(NCLWW_TYPE);
|
||||
|
Loading…
Reference in New Issue
Block a user