mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 06:09:42 +00:00
Use correct skip and fix MSVC
This commit is contained in:
parent
77aaa6177e
commit
212f6bae56
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue