src/ai/api/ai_cargo.hpp
branchnoai
changeset 9532 539c48d64eea
parent 9530 5b93bc87cc5e
child 9541 4bb34cea7fad
--- a/src/ai/api/ai_cargo.hpp	Sun Mar 25 16:46:57 2007 +0000
+++ b/src/ai/api/ai_cargo.hpp	Sun Mar 25 17:43:40 2007 +0000
@@ -61,7 +61,9 @@
 	SQAICargo.PreRegister(engine);
 	SQAICargo.AddConstructor(engine);
 
-	SQAICargo.DefSQMethod(engine, &AICargo::IsValidCargo,   "IsValidCargo");
+	SQAICargo.DefSQStaticMethod(engine, &AICargo::GetClassName, "GetClassName");
+	SQAICargo.DefSQStaticMethod(engine, &AICargo::IsValidCargo, "IsValidCargo");
+
 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoLabel,  "GetCargoLabel");
 	SQAICargo.DefSQMethod(engine, &AICargo::IsFreight,      "IsFreight");
 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome");