From 2b16657fac967df91c9875945caea3845a36d36e Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Sun, 13 Sep 2009 15:03:26 +0000 Subject: [PATCH] --- source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs b/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs index 4fe1bd33f..a9a71caa1 100644 --- a/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs +++ b/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs @@ -375,7 +375,7 @@ namespace Cosmos.IL2CPU { // If its virtual, and its not final or sealed then we // need to constanly watch for new descendant types which // might have overrides. - if (aMethod.IsFinal || aMethod.DeclaringType.IsSealed) { + if (!aMethod.IsFinal && !aMethod.DeclaringType.IsSealed) { mVirtuals.Add(aMethod); //TODO: We end up adding many overrides of each virtual //Would be great if we could not add descendant overrides