1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 12:39:53 +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
{
constexpr uint32_t sInvalidSlot = -1;
constexpr uint32_t sInvalidSlot = static_cast<uint32_t>(-1);
}
void InventoryState::load(ESMReader& esm)
@ -18,7 +18,7 @@ namespace ESM
uint32_t index = 0;
while (esm.isNextSub("IOBJ"))
{
esm.skip(4);
esm.skipHT<int32_t>();
ObjectState state;