mirror of https://github.com/OpenTTD/OpenTTD
(svn r26084) -Fix: don't allow executing the palette toggling code when it's not editable
parent
58c356e935
commit
45a5aba8d5
|
@ -1058,7 +1058,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
|||
}
|
||||
|
||||
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->SetDirty();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue