Fix crash when rendering linkgraph overlay in smallmap window
See: #633
This commit is contained in:
@@ -457,7 +457,7 @@ void LinkGraphOverlay::PrepareDraw()
|
|||||||
if (this->dirty) {
|
if (this->dirty) {
|
||||||
this->RebuildCache();
|
this->RebuildCache();
|
||||||
}
|
}
|
||||||
if (this->last_update_number != GetWindowUpdateNumber() && this->window->viewport->zoom < ZOOM_LVL_DRAW_MAP) {
|
if (this->last_update_number != GetWindowUpdateNumber() && (this->window->viewport == nullptr || this->window->viewport->zoom < ZOOM_LVL_DRAW_MAP)) {
|
||||||
this->last_update_number = GetWindowUpdateNumber();
|
this->last_update_number = GetWindowUpdateNumber();
|
||||||
this->RefreshDrawCache();
|
this->RefreshDrawCache();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user