Changeset - r24129:5ed63507d209
[Not reviewed]
master
0 1 0
SamuXarick - 4 years ago 2020-03-22 14:02:48
43006711+SamuXarick@users.noreply.github.com
Fix: Ignore clicks on non-applicable global goals (#8035)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/goal_gui.cpp
Show inline comments
 
@@ -86,7 +86,7 @@ struct GoalListWindow : public Window {
 
		if (y < 0) return;
 

	
 
		for (const Goal *s : Goal::Iterate()) {
 
			if (s->company == this->window_number) {
 
			if (s->company == this->window_number && s->company != INVALID_COMPANY) {
 
				y--;
 
				if (y == 0) {
 
					this->HandleClick(s);
0 comments (0 inline, 0 general)