Revert "fix some things cppcheck found...some are TODO because i don't feel like investigating them"

This reverts commit 173575e835.
This commit is contained in:
DarthArgus
2015-03-26 00:00:15 -05:00
parent 38e4dfee11
commit db15932436
15 changed files with 18 additions and 68 deletions
@@ -1167,7 +1167,7 @@ bool TargaFormat::saveImage(const Image &image, const char *filename)
//---------------------------------------------------
f = fopen(filename, "wb");
if (f==NULL)
if (!f)
{
DEBUG_WARNING(true, ("Unable to open Targa destination file %s.\n", filename));
return false;