Skip to content

Commit 3b9d993

Browse files
HarrievGRobertBeckebans
authored andcommitted
- Crashfix for when loading an bswf with no abcTagdata
- Removed redundant forward declare
1 parent 37bf67e commit 3b9d993

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

neo/swf/SWF_Load.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,10 @@ bool idSWF::LoadBinary( const char* bfilename, ID_TIME_T sourceTimeStamp )
634634
f->ReadString( symbolClasses.symbols[i].name );
635635
}
636636

637-
DoABC( abcFile.AbcTagData );
637+
if ( abcFile.AbcTagData.Length() )
638+
{
639+
DoABC( abcFile.AbcTagData );
640+
}
638641
}
639642

640643
delete f;

neo/swf/SWF_ShapeParser.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ This class handles parsing and triangulating a shape
3636
class idSWFShapeParser
3737
{
3838
public:
39-
struct swfSPDrawLine_t;
4039
idSWFShapeParser() { }
4140
void Parse( idSWFBitStream& bitstream, idSWFShape& shape, int recordType );
4241
void ParseMorph( idSWFBitStream& bitstream, idSWFShape& shape );

0 commit comments

Comments
 (0)