mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(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:
|
||||
if (this->active_sel != NULL || !this->editable) {
|
||||
if (this->active_sel != NULL && this->editable) {
|
||||
this->active_sel->palette ^= GRFP_USE_MASK;
|
||||
this->SetDirty();
|
||||
}
|
||||
|
Reference in New Issue
Block a user