From d4a53e6b49ba2797cc2a5b23731c93469223d4e2 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Fri, 24 May 2013 12:10:52 +0200 Subject: [PATCH] Fixed crash --- neo/swf/SWF_Load.cpp | 4 ++-- neo/swf/SWF_Sprites.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/neo/swf/SWF_Load.cpp b/neo/swf/SWF_Load.cpp index 56b5ee89..8154fc30 100644 --- a/neo/swf/SWF_Load.cpp +++ b/neo/swf/SWF_Load.cpp @@ -585,8 +585,6 @@ void idSWF::WriteXML( const char* filename ) file->WriteFloatString( "\n" ); file->WriteFloatString( "\n", XSWF_VERSION, timestamp, frameWidth, frameHeight, frameRate ); - mainsprite->WriteXML( file, "\t" ); - file->WriteFloatString( "\t\n" ); for( int i = 0; i < dictionary.Num(); i++ ) { @@ -969,6 +967,8 @@ void idSWF::WriteXML( const char* filename ) file->WriteFloatString( "\t\n" ); + mainsprite->WriteXML( file, "\t" ); + file->WriteFloatString( "\n" ); } diff --git a/neo/swf/SWF_Sprites.cpp b/neo/swf/SWF_Sprites.cpp index d5e8a749..f1693c6f 100644 --- a/neo/swf/SWF_Sprites.cpp +++ b/neo/swf/SWF_Sprites.cpp @@ -317,7 +317,7 @@ void idSWFSprite::WriteXML( idFile* f, const char* indentPrefix, int characterID //f->WriteFloatString( "\t\t", frameLabels.Num() ); for( int i = 0; i < frameLabels.Num(); i++ ) { - f->WriteFloatString( "%s\t\n", indentPrefix, frameLabels[i].frameNum, frameLabels[i].frameLabel ); + f->WriteFloatString( "%s\t\n", indentPrefix, frameLabels[i].frameNum, frameLabels[i].frameLabel.c_str() ); } @@ -448,7 +448,7 @@ void idSWFSprite::WriteXML_PlaceObject2( idFile* file, idSWFBitStream& bitstream // FIXME: clip actions } - file->WriteFloatString( "%s\t\t\n", indentPrefix, flags, depth ); + file->WriteFloatString( "%s\t\t\n", indentPrefix ); } // RB end