View Single Post
Old 11-13-2008, 03:30 PM   #2 (permalink)
Gargouille
Forum Novice
 
Join Date: Feb 2007
Posts: 318
Default

Hi,

Code:
public override void OnRemoved( object parent )
		{
			Name = "Elven Quiver";

			return base.OnRemoved( parent );
		}
Your OnRemoved method is defined as returning void... In that way you can't return base.OnRemoved...

Two things :

- if base OnRemoved ( here it means BaseQuiver/OnRemoved ) is really defined as returning void
Code:
public override void OnRemoved( object parent )
		{
			Name = "Elven Quiver";

			base.OnRemoved( parent );//without returning value, just calling base method
		}
- and if it is an error, meaning that base method returning a value, you must change your OnRemoved method in order to declare the good return type.

(I bet it's the first soluce of course).
Gargouille is offline   Reply With Quote