mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Fix skip DATA in cell ref loading
This commit is contained in:
parent
6b464a9330
commit
c3a924de23
@ -116,7 +116,7 @@ namespace ESM
|
|||||||
if constexpr (load)
|
if constexpr (load)
|
||||||
esm.getHTSized<24>(cellRef.mPos);
|
esm.getHTSized<24>(cellRef.mPos);
|
||||||
else
|
else
|
||||||
esm.skip(24);
|
esm.skipHTSized<24, decltype(cellRef.mPos)>();
|
||||||
break;
|
break;
|
||||||
case ESM::fourCC("NAM0"):
|
case ESM::fourCC("NAM0"):
|
||||||
{
|
{
|
||||||
|
@ -155,6 +155,13 @@ public:
|
|||||||
getHT(x);
|
getHT(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <std::size_t size, typename T>
|
||||||
|
void skipHTSized()
|
||||||
|
{
|
||||||
|
static_assert(sizeof(T) == size);
|
||||||
|
skipHT<T>();
|
||||||
|
}
|
||||||
|
|
||||||
// Read a string by the given name if it is the next record.
|
// Read a string by the given name if it is the next record.
|
||||||
std::string getHNOString(NAME name);
|
std::string getHNOString(NAME name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user