From b971714e7f11687870ecdda8bb04d75b90d5ceb9 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 3 Feb 2013 03:54:31 +0000 Subject: [PATCH] - Do not print imported functions in the profile list. SVN r4059 (trunk) --- src/p_acs.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 95899a5993..bac4c00927 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -7761,9 +7761,13 @@ void ArrangeFunctionProfiles(TArray &profiles) prof.Module = module; for (int i = 0; i < module->NumFunctions; ++i) { - prof.Index = i; - prof.ProfileData = module->FunctionProfileData + i; - profiles.Push(prof); + ScriptFunction *func = (ScriptFunction *)module->Functions + i; + if (func->ImportNum == 0) + { + prof.Index = i; + prof.ProfileData = module->FunctionProfileData + i; + profiles.Push(prof); + } } } }