1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-28 10:36:54 +00:00

Fix bhkConstraintMotorCInfo loading

This commit is contained in:
Alexei Kotov 2023-07-20 03:14:55 +03:00
parent 23f95cf762
commit c34157fc28

View file

@ -234,7 +234,7 @@ namespace Nif
void bhkConstraintMotorCInfo::read(NIFStream* nif) void bhkConstraintMotorCInfo::read(NIFStream* nif)
{ {
mType = static_cast<hkMotorType>(nif->get<uint32_t>()); mType = static_cast<hkMotorType>(nif->get<uint8_t>());
switch (mType) switch (mType)
{ {
case hkMotorType::Motor_Position: case hkMotorType::Motor_Position: