From fbc1a086abc35feee8874116fe81d3754aba7633 Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Wed, 22 Jul 2009 15:36:14 +0000 Subject: [PATCH] --- source/Compiler/Compiler/Scanner.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/Compiler/Compiler/Scanner.cs b/source/Compiler/Compiler/Scanner.cs index d6bc7e217..516ac0c56 100644 --- a/source/Compiler/Compiler/Scanner.cs +++ b/source/Compiler/Compiler/Scanner.cs @@ -53,6 +53,7 @@ namespace Cosmos.Compiler private void ScanList() { + // dont use a foreach here, the list will change. for(int i = 0; i < mMethods.Count; i++) { ScanMethod(mMethods[i]); @@ -67,10 +68,10 @@ namespace Cosmos.Compiler // pinvoke return; } - - // abstract methods dont have an implementation - if(aMethodBase.IsAbstract) + else if (aMethodBase.IsAbstract) { + // abstract methods dont have an implementation + return; }