ELSC fixes

This commit is contained in:
Phillip Stephens 2016-02-12 22:38:05 -08:00
parent 5349db23ad
commit 5a5d09a410
1 changed files with 8 additions and 1 deletions

View File

@ -104,9 +104,16 @@ bool CParticleElectricDataFactory::CreateELSM(CElectricDescription *desc, CInput
case SBIG('ZERY'): case SBIG('ZERY'):
desc->x70_ZERY = CPF::GetBool(in); desc->x70_ZERY = CPF::GetBool(in);
break; break;
default:
{
uint32_t clsName = clsId.toUint32();
Log.report(LogVisor::FatalError, "Unknown ELSM class %.4s @%" PRIi64, &clsName, in.position());
return false;
} }
}
clsId = GetClassID(in);
} }
return false; return true;
} }
std::unique_ptr<Retro::IObj> FParticleElecrticFactory(const Retro::SObjectTag &tag, Retro::CInputStream &in, const Retro::CVParamTransfer &vparms) std::unique_ptr<Retro::IObj> FParticleElecrticFactory(const Retro::SObjectTag &tag, Retro::CInputStream &in, const Retro::CVParamTransfer &vparms)