Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Jun 19, 2013 12:01 am

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: AI crashing
PostPosted: Wed May 30, 2012 2:28 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Wed Dec 29, 2010 7:36 pm
Posts: 135
because A is a class instance of AIList and so b=a mean b point also to that instance and not to a new AIList instance with its content that match A content.

to make what you wish do :
Code:
local a=AIList();
local b=AIList();
b.AddList(a);


Top
 Profile  
 
 Post subject: Re: AI crashing
PostPosted: Wed May 30, 2012 6:18 pm 
Offline
Engineer
Engineer

Joined: Mon Feb 06, 2012 11:28 pm
Posts: 19
krinn wrote:
because A is a class instance of AIList and so b=a mean b point also to that instance and not to a new AIList instance with its content that match A content.

to make what you wish do :
Code:
local a=AIList();
local b=AIList();
b.AddList(a);



Thanks, thought it would be something like that.

it only took about 3 months to figure out what was happening!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000-2013 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2013.
Hosted by Zernebok Hosting.