mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
recommit the innocuous fixes from cppcheck - the va_end calls were deleting pointers and breaking things further down the line
This commit is contained in:
@@ -253,7 +253,7 @@ bool PaletteArgb::write(const char *pathName) const
|
||||
|
||||
// open file
|
||||
FILE *const file = fopen(pathName, "wb");
|
||||
if (!file)
|
||||
if (file==NULL)
|
||||
{
|
||||
WARNING(true, ("failed to open file [%s] for writing.", pathName));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user