mirror of https://github.com/OpenTTD/OpenTTD
(svn r14304) -Fix (r14104): waypoint train list wasn't closed with the waypoint window (crashes since r14296)
parent
3b4d15d35b
commit
3236b3d10e
|
@ -15,6 +15,7 @@
|
||||||
#include "gfx_func.h"
|
#include "gfx_func.h"
|
||||||
#include "command_func.h"
|
#include "command_func.h"
|
||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
|
#include "window_func.h"
|
||||||
|
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
|
@ -45,6 +46,11 @@ public:
|
||||||
this->FindWindowPlacementAndResize(desc);
|
this->FindWindowPlacementAndResize(desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~WaypointWindow()
|
||||||
|
{
|
||||||
|
DeleteWindowById(WC_TRAINS_LIST, (this->window_number << 16) | (VEH_TRAIN << 11) | VLW_WAYPOINT_LIST | this->wp->owner);
|
||||||
|
}
|
||||||
|
|
||||||
virtual void OnPaint()
|
virtual void OnPaint()
|
||||||
{
|
{
|
||||||
/* You can only change your own waypoints */
|
/* You can only change your own waypoints */
|
||||||
|
|
Loading…
Reference in New Issue