to make what you wish do :
Code: Select all
local a=AIList();
local b=AIList();
b.AddList(a);
Moderator: OpenTTD Developers
Code: Select all
local a=AIList();
local b=AIList();
b.AddList(a);
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: Select all
local a=AIList(); local b=AIList(); b.AddList(a);
Users browsing this forum: No registered users and 6 guests