Fixed assignment in if statement.
Merge pull request #1 from icecreammatt/master

Fixed an assignment in an if statement