Cleanup: quiet compiler warning

This commit is contained in:
Campbell Barton 2022-06-06 12:45:25 +10:00
parent 8589f60546
commit bb34afac56
1 changed files with 1 additions and 1 deletions

View File

@ -4229,7 +4229,7 @@ void WM_event_modal_handler_region_replace(wmWindow *win,
* it needs to keep old region stored in handler, so don't change it. */
if ((handler->context.region == old_region) && (handler->is_fileselect == false)) {
handler->context.region = new_region;
handler->context.region_type = new_region ? new_region->regiontype : RGN_TYPE_WINDOW;
handler->context.region_type = new_region ? new_region->regiontype : (int)RGN_TYPE_WINDOW;
}
}
}