fix script error when accessing non-initialized cable request queue

master
Maikel de Vries 2018-01-26 08:30:15 +01:00
parent abfeb86e30
commit 7768e6c992
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public func IsAvailable(proplist requested, int amount)
// Be sure to always call these via _inherited(...); // Be sure to always call these via _inherited(...);
func Initialize() public func Construction()
{ {
destination_list = []; destination_list = [];
request_queue = []; request_queue = [];
@ -60,7 +60,7 @@ func Initialize()
It first clears every waypoint from the network and then renews the whole information. It first clears every waypoint from the network and then renews the whole information.
Optimisation welcome! Optimisation welcome!
*/ */
func Destruction() public func Destruction()
{ {
for (var connection in FindObjects(Find_Func("IsConnectedTo", this))) for (var connection in FindObjects(Find_Func("IsConnectedTo", this)))
{ {