mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 18:32:35 +01:00
Codechange: Manage window viewport via unique_ptr.
This commit is contained in:
committed by
Peter Nelson
parent
8275bbfb87
commit
c982816c0e
@@ -1090,8 +1090,6 @@ Window::~Window()
|
||||
{
|
||||
/* Make sure the window is closed, deletion is allowed only in Window::DeleteClosedWindows(). */
|
||||
assert(*this->z_position == nullptr);
|
||||
|
||||
if (this->viewport != nullptr) DeleteWindowViewport(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user