1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 07:15:36 +00:00

Don't try to show unallocated or uninitialized profiling data

This commit is contained in:
Evil Eye 2024-06-20 19:36:30 +02:00
parent 81ceb497a1
commit 46c8133a72

View file

@ -853,10 +853,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);