Fixed producers unit test #6

The problems here were:
- the syntax for GetComponent() was wrong.
qteditor
Mark 2016-06-01 20:14:11 +02:00
parent 10c918d4a2
commit 46ac671ef4
1 changed files with 1 additions and 1 deletions

View File

@ -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);