forked from mirror/OpenTTD
(svn r26084) -Fix: don't allow executing the palette toggling code when it's not editable
This commit is contained in:
@@ -1058,7 +1058,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case WID_NS_TOGGLE_PALETTE:
|
case WID_NS_TOGGLE_PALETTE:
|
||||||
if (this->active_sel != NULL || !this->editable) {
|
if (this->active_sel != NULL && this->editable) {
|
||||||
this->active_sel->palette ^= GRFP_USE_MASK;
|
this->active_sel->palette ^= GRFP_USE_MASK;
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user