Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible assignment/comparison bug #38

Closed
dschmidt opened this issue Jul 8, 2014 · 0 comments
Closed

Possible assignment/comparison bug #38

dschmidt opened this issue Jul 8, 2014 · 0 comments

Comments

@dschmidt
Copy link
Owner

dschmidt commented Jul 8, 2014

Hey @jangoclik

my compiler complains about some AI code that looks possibly wrong:

[ 19%] Building CXX object src/CMakeFiles/c4.dir/Players/AiPlayerGood.cpp.o
/home/domme/dev/sources/c4/src/Players/AiPlayerGood.cpp:413:31: warning: equality comparison result unused [-Wunused-comparison]
                    tempPlayer==field[row-1][column+1];
                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/domme/dev/sources/c4/src/Players/AiPlayerGood.cpp:413:31: note: use '=' to turn this equality comparison into an assignment
                    tempPlayer==field[row-1][column+1];
                              ^~
                              =
1 warning generated.

Please fix :-)

P.S.: If you write "Fix #38" into the commit message it will automatically close this issue

jangoclik added a commit to jangoclik/c4 that referenced this issue Jul 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant