mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 14:45:35 +00:00
Merge branch 'bc_refnum' into 'master'
Always print object refnum See merge request OpenMW/openmw!1123
This commit is contained in:
commit
bcdd0f55da
1 changed files with 5 additions and 4 deletions
|
@ -1363,18 +1363,19 @@ namespace MWScript
|
|||
std::time_t currentTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||
msg << std::put_time(std::gmtime(¤tTime), "%Y.%m.%d %T UTC") << std::endl;
|
||||
|
||||
msg << "Content file: ";
|
||||
msg << "Content file: " << ptr.getCellRef().getRefNum().mContentFile;
|
||||
|
||||
if (!ptr.getCellRef().hasContentFile())
|
||||
msg << "[None]" << std::endl;
|
||||
msg << " [None]" << std::endl;
|
||||
else
|
||||
{
|
||||
std::vector<std::string> contentFiles = MWBase::Environment::get().getWorld()->getContentFiles();
|
||||
|
||||
msg << contentFiles.at (ptr.getCellRef().getRefNum().mContentFile) << std::endl;
|
||||
msg << "RefNum: " << ptr.getCellRef().getRefNum().mIndex << std::endl;
|
||||
msg << " [" << contentFiles.at (ptr.getCellRef().getRefNum().mContentFile) << "]" << std::endl;
|
||||
}
|
||||
|
||||
msg << "RefNum: " << ptr.getCellRef().getRefNum().mIndex << std::endl;
|
||||
|
||||
if (ptr.getRefData().isDeletedByContentFile())
|
||||
msg << "[Deleted by content file]" << std::endl;
|
||||
if (!ptr.getRefData().getCount())
|
||||
|
|
Loading…
Reference in a new issue