From 7768e6c99244aa355a743553372b6022dbd7948a Mon Sep 17 00:00:00 2001 From: Maikel de Vries Date: Fri, 26 Jan 2018 08:30:15 +0100 Subject: [PATCH] fix script error when accessing non-initialized cable request queue --- .../CableCars.ocd/Libraries.ocd/CableStation.ocd/Script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Experimental.ocf/CableLorrys.ocs/CableCars.ocd/Libraries.ocd/CableStation.ocd/Script.c b/planet/Experimental.ocf/CableLorrys.ocs/CableCars.ocd/Libraries.ocd/CableStation.ocd/Script.c index 6de756136..ec377bf9b 100644 --- a/planet/Experimental.ocf/CableLorrys.ocs/CableCars.ocd/Libraries.ocd/CableStation.ocd/Script.c +++ b/planet/Experimental.ocf/CableLorrys.ocs/CableCars.ocd/Libraries.ocd/CableStation.ocd/Script.c @@ -49,7 +49,7 @@ public func IsAvailable(proplist requested, int amount) // Be sure to always call these via _inherited(...); -func Initialize() +public func Construction() { destination_list = []; request_queue = []; @@ -60,7 +60,7 @@ func Initialize() It first clears every waypoint from the network and then renews the whole information. Optimisation welcome! */ -func Destruction() +public func Destruction() { for (var connection in FindObjects(Find_Func("IsConnectedTo", this))) {