diff -r 1d6c509b56ee -r a4ad60ba03be src/ai/api/ai_cargo.hpp --- a/src/ai/api/ai_cargo.hpp Sun Mar 25 13:55:31 2007 +0000 +++ b/src/ai/api/ai_cargo.hpp Sun Mar 25 14:19:59 2007 +0000 @@ -55,10 +55,12 @@ DefSQClass SQAICargo("AICargo"); SQAICargo.PreRegister(engine); SQAICargo.AddConstructor(engine); + SQAICargo.DefSQFunction(engine, &AICargo::IsValidCargo, "IsValidCargo"); SQAICargo.DefSQFunction(engine, &AICargo::GetCargoLabel, "GetCargoLabel"); SQAICargo.DefSQFunction(engine, &AICargo::IsFreight, "IsFreight"); SQAICargo.DefSQFunction(engine, &AICargo::GetCargoIncome, "GetCargoIncome"); + SQAICargo.PostRegister(engine); } #endif /* DEFINE_SQUIRREL_CLASS */