/** If a WorkItem needs to have a valid flood fill during execution, call this method to ensure there are no pending flood fills */ public void EnsureValidFloodFill() { if (queuedWorkItemFloodFill) { astar.FloodFill(); } }