Partially fix data race issues around _cur_palette

See: https://github.com/OpenTTD/OpenTTD/issues/8712
This commit is contained in:
Jonathan G Rennison
2021-04-06 19:25:04 +01:00
parent d7b536ca78
commit ef81729dde
3 changed files with 6 additions and 3 deletions

View File

@@ -257,6 +257,7 @@ void VideoDriver_SDL_Base::CheckPaletteAnim()
if (_cur_palette.count_dirty == 0) return;
this->local_palette = _cur_palette;
_cur_palette.count_dirty = 0;
this->MakeDirty(0, 0, _screen.width, _screen.height);
}