1
0
Fork 0

(svn r26084) -Fix: don't allow executing the palette toggling code when it's not editable

release/1.4
rubidium 2013-11-24 14:34:33 +00:00
parent 58c356e935
commit 45a5aba8d5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}