bin/ai/wrightai/main.nut
branchnoai
changeset 9762 ad9c304c6c77
parent 9753 7209db94ad12
child 9805 d7f0e62cedf3
--- a/bin/ai/wrightai/main.nut	Mon Feb 25 14:34:16 2008 +0000
+++ b/bin/ai/wrightai/main.nut	Mon Feb 25 14:56:45 2008 +0000
@@ -349,7 +349,7 @@
 			}
 			else if (ret < 0 && ticker == 0) {
 				/* The AI failed to build a first airport and is deemed */
-				this.ChangeName("FailedWrightAI");
+				AICompany.SetCompanyName("FailedWrightAI");
 				print(this.name + ": Failed to build first airport route, now giving up building. Repaying loan. Have a nice day!");
 				AICompany.SetLoanAmount(0);
 				return;