mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
Revert "recommit the innocuous fixes from cppcheck - the va_end calls were deleting pointers and breaking things further down the line"
This reverts commit bc33f176c2.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user