forked from Mirrors/openclonk
Fixed producers unit test #6
The problems here were: - the syntax for GetComponent() was wrong.qteditor
parent
10c918d4a2
commit
46ac671ef4
|
@ -456,7 +456,7 @@ global func Test6_OnStart(int plr)
|
|||
for (var product in producer->GetProducts())
|
||||
{
|
||||
var i = 0, component;
|
||||
while (component = GetComponent(nil, i, nil, product))
|
||||
while (component = product->GetComponent(nil, i))
|
||||
{
|
||||
item = CreateObject(component);
|
||||
producer->Collect(item, true);
|
||||
|
|
Loading…
Reference in New Issue