core/ConsoleDetours.cpp
changeset 2844 87f951bece2d
parent 2843 bf16cf249d3d
child 3010 8ea042c00c80
     1.1 --- a/core/ConsoleDetours.cpp	Wed Oct 28 23:30:52 2009 -0700
     1.2 +++ b/core/ConsoleDetours.cpp	Thu Oct 29 00:06:12 2009 -0700
     1.3 @@ -156,7 +156,10 @@
     1.4  		while (iter != vtables.end())
     1.5  		{
     1.6  			if ((*iter).refcount)
     1.7 +			{
     1.8 +				iter++;
     1.9  				continue;
    1.10 +			}
    1.11  			/* Damn it. This event happens AFTER the plugin has unloaded!
    1.12  			 * There's two options. Remove the hook now and hope SH's memory
    1.13  			 * protection will prevent a crash. Otherwise, we can wait until