← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/bug-1520762 into lp:widelands

 

TiborB has proposed merging lp:~widelands-dev/widelands/bug-1520762 into lp:widelands.

Requested reviews:
  Widelands Developers (widelands-dev)
Related bugs:
  Bug #1520762 in widelands: "Error in defaultai.cc"
  https://bugs.launchpad.net/widelands/+bug/1520762

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/bug-1520762/+merge/278893

Well, trivial fix for the bug. Probably my inattention..
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1520762 into lp:widelands.
=== modified file 'src/ai/defaultai.cc'
--- src/ai/defaultai.cc	2015-11-26 09:53:02 +0000
+++ src/ai/defaultai.cc	2015-11-28 19:35:28 +0000
@@ -4453,7 +4453,7 @@
 		++field.supporters_nearby_.at(bo.production_hint_);
 	}
 
-	if (bo.plants_trees_ >= 0) {
+	if (bo.plants_trees_) {
 		++field.rangers_nearby_;
 	}
 }


Follow ups