Update main.cpp

fixed typo line 1009 "if(nHeight) = -1;" to "if(nHeight) == -1;"