Changeset - r11058:03ccd99b7533
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-02-07 16:11:21
smatz@openttd.org
(svn r15398) -Fix (r14135): _current_company shouldn't be used in GUI code (Swallow)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/waypoint_gui.cpp
Show inline comments
 
@@ -11,6 +11,7 @@
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
 
#include "company_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 

	
 
@@ -51,7 +52,7 @@ public:
 
	virtual void OnPaint()
 
	{
 
		/* You can only change your own waypoints */
 
		this->SetWidgetDisabledState(WAYPVW_RENAME, !CheckOwnership(this->wp->owner));
 
		this->SetWidgetDisabledState(WAYPVW_RENAME, this->wp->owner != _local_company);
 
		SetDParam(0, this->wp->index);
 
		this->DrawWidgets();
 

	
0 comments (0 inline, 0 general)