Cleaned up objlist_class.

This commit is contained in:
Muzychenko Andrey
2021-01-30 14:19:25 +03:00
parent 5b9a1ff95d
commit 6ff457eb68
42 changed files with 276 additions and 340 deletions

View File

@@ -597,9 +597,9 @@ TPinballComponent* control::make_component_link(component_tag_base* tag)
return tag->GetComponent();
auto compList = TableG->ComponentList;
for (int index = 0; index < compList->Count(); index++)
for (int index = 0; index < compList->GetCount(); index++)
{
auto comp = static_cast<TPinballComponent*>(compList->Get(index));
auto comp = compList->Get(index);
if (comp->GroupName)
{
if (!strcmp(comp->GroupName, tag->Name))