Skip to content

Commit

Permalink
Update DBCDBuilder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlamin committed Jan 6, 2025
1 parent bb0a2b7 commit 3d9e430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DBCD/DBCDBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ internal Tuple<Type, DBCDInfo> Build(DBParser dbcReader, Stream dbd, string name

if (!fieldDefinition.isNonInline)
{
if (metadataIndex < dbcReader.ColumnMeta.Length)
if (dbcReader.ColumnMeta != null && metadataIndex < dbcReader.ColumnMeta.Length)
{
AddAttribute<SizeInBitsAttribute>(field, dbcReader.ColumnMeta[metadataIndex].Size);
}
Expand Down

0 comments on commit 3d9e430

Please sign in to comment.