mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix rgsp file reading for version 1 files.
This commit is contained in:
parent
47ccbfa4db
commit
89835b437a
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ namespace Penumbra.Importer
|
||||||
|
|
||||||
var ret = new TexToolsMeta( filePath, version );
|
var ret = new TexToolsMeta( filePath, version );
|
||||||
|
|
||||||
var subRace = ( SubRace )( br.ReadByte() + 1 );
|
var subRace = ( SubRace )( version == 1 ? flag + 1 : br.ReadByte() + 1 );
|
||||||
if( !Enum.IsDefined( typeof( SubRace ), subRace ) || subRace == SubRace.Unknown )
|
if( !Enum.IsDefined( typeof( SubRace ), subRace ) || subRace == SubRace.Unknown )
|
||||||
{
|
{
|
||||||
PluginLog.Error( $"Error while parsing .rgsp file:\n\t{subRace} is not a valid SubRace." );
|
PluginLog.Error( $"Error while parsing .rgsp file:\n\t{subRace} is not a valid SubRace." );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue