diff --git a/code/AssxmlExporter.cpp b/code/AssxmlExporter.cpp index 062fea6dd..1538d2456 100644 --- a/code/AssxmlExporter.cpp +++ b/code/AssxmlExporter.cpp @@ -67,7 +67,7 @@ int ioprintf( IOStream * io, const char * format, ... ) va_start( va, format ); int nSize = vsnprintf( sz, 4096, format, va ); ai_assert( nSize < 4096 ); - va_end( format ); + va_end( va ); io->Write( sz, sizeof(char), nSize );