1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 09:09:42 +00:00

Use correct skip and fix MSVC

This commit is contained in:
Evil Eye 2023-10-24 20:59:20 +02:00
parent 77aaa6177e
commit 212f6bae56

View file

@ -9,7 +9,7 @@ namespace ESM
{ {
namespace namespace
{ {
constexpr uint32_t sInvalidSlot = -1; constexpr uint32_t sInvalidSlot = static_cast<uint32_t>(-1);
} }
void InventoryState::load(ESMReader& esm) void InventoryState::load(ESMReader& esm)
@ -18,7 +18,7 @@ namespace ESM
uint32_t index = 0; uint32_t index = 0;
while (esm.isNextSub("IOBJ")) while (esm.isNextSub("IOBJ"))
{ {
esm.skip(4); esm.skipHT<int32_t>();
ObjectState state; ObjectState state;