Hello, I'm new to this forum.

I'm making a Combat addon fro the space flight simulator, orbiter (www.orbitersim.com). You include compiled libraries to make the addons. I'm pretty sure my problem is not orbiter specific, though. Here is the code that is causing my error:

Code:
DLLCLBK void opcPreStep(double simt, double simdt, double mjd)
{
	//loop through all weapons, and destroy them.
	for (vector<Weapon>::iterator it = WeaponList.begin(); it != WeaponList.end();++it)
  {
	 it->explode();
	}
};
opcPreStep is called by the core every timestep. WeaponList is a vector of the Weapon class.
I compile my addon, and I get a crash to desktop. If I change it to *it, I get an illegal indirection error. can anyone help? thanks.