mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 17:42:31 +00:00
Make some NIF loading messages less confusing
This commit is contained in:
parent
a8ed567177
commit
baefff323c
@ -354,14 +354,14 @@ namespace Nif
|
|||||||
if (rec.empty())
|
if (rec.empty())
|
||||||
{
|
{
|
||||||
std::stringstream error;
|
std::stringstream error;
|
||||||
error << "Record number " << i << " out of " << recNum << " is blank.";
|
error << "Record type is blank (index " << i << ")";
|
||||||
throw Nif::Exception(error.str(), filename);
|
throw Nif::Exception(error.str(), filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Record separator. Some Havok records in Oblivion do not have it.
|
// Record separator. Some Havok records in Oblivion do not have it.
|
||||||
if (hasRecordSeparators && !rec.starts_with("bhk"))
|
if (hasRecordSeparators && !rec.starts_with("bhk"))
|
||||||
if (nif.getInt())
|
if (nif.getInt())
|
||||||
Log(Debug::Warning) << "NIFFile Warning: Record number " << i << " out of " << recNum
|
Log(Debug::Warning) << "NIFFile Warning: Record of type " << rec << ", index " << i
|
||||||
<< " is preceded by a non-zero separator. File: " << filename;
|
<< " is preceded by a non-zero separator. File: " << filename;
|
||||||
|
|
||||||
const auto entry = factories.find(rec);
|
const auto entry = factories.find(rec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user