1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +00:00

Merge branch 'unscriptedrealitytv' into 'master'

Don't try to show unallocated or uninitialized profiling data

See merge request OpenMW/openmw!4188
This commit is contained in:
psi29a 2024-06-24 07:09:43 +00:00
commit b8d861ca16

View File

@ -864,10 +864,7 @@ namespace MWLua
else if (selectedPtr.isEmpty())
out << std::setw(valueW * 2) << "NA (not selected) ";
else if (!selectedScripts || !selectedScripts->hasScript(i))
{
out << std::setw(valueW) << "-";
outMemSize(selectedStats[i].mMemoryUsage);
}
out << std::setw(valueW * 2) << "NA";
else
{
out << std::setw(valueW) << static_cast<int64_t>(selectedStats[i].mAvgInstructionCount);