Error in defaultai.cc

Bug #1520762 reported by SirVer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
TiborB

Bug Description

This can't be intended, right?

/Users/sirver/Desktop/Programming/cpp/widelands/bzr_repo/src/ai/defaultai.cc:4456:23: warning: comparison of constant 0 with expression of type 'const bool' is always true [-Wtautological-constant-out-of-range-compare]
 if (bo.plants_trees_ >= 0) {
     ~~~~~~~~~~~~~~~~ ^ ~

Tags: ai

Related branches

Revision history for this message
TiborB (tiborb95) wrote :

Well, current AI is so complicated that it is very hard to spot that something does not behave as expected :(

Changed in widelands:
importance: Undecided → Low
Revision history for this message
TiborB (tiborb95) wrote :

fixed in rev 7671

Changed in widelands:
status: Confirmed → Fix Committed
Changed in widelands:
milestone: none → build19-rc1
tags: added: computerplayer
GunChleoc (gunchleoc)
tags: added: ai
removed: computerplayer
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.