Thread
:
OT: Stupid c++ (Roguelike development)
View Single Post
#
3
August 16th, 2006, 04:00 AM
AngleWyrm
Second Lieutenant
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OT: Stupid c++
Bug: if(t2 = 0) // assign zero to t2, return true (successful assignment)
You probably meant: if(t2==0) // test for equality
Happens so often that some compilers even have a warning for it.
AngleWyrm
View Public Profile
Send a private message to AngleWyrm
Visit AngleWyrm's homepage!
Find all posts by AngleWyrm