1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(svn r18640) -Fix (r18633): don't assert when accessing first invalid item, it's used quite often in the code

-Revert (r18637): it's not needed any more
This commit is contained in:
smatz
2009-12-26 13:49:14 +00:00
parent 9574371e53
commit ce08aebde7
2 changed files with 4 additions and 5 deletions

View File

@@ -435,9 +435,6 @@ 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);