From cc3f42794d134b9f4b6c7efecb07d4b3366887c1 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 21:05:25 +0000 Subject: (svn r23632) -Add: GSCompanyMode, to change company in GameScripts --- src/script/api/script_grouplist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api/script_grouplist.cpp') diff --git a/src/script/api/script_grouplist.cpp b/src/script/api/script_grouplist.cpp index cbaeea0ac..80a00cd3e 100644 --- a/src/script/api/script_grouplist.cpp +++ b/src/script/api/script_grouplist.cpp @@ -18,6 +18,6 @@ ScriptGroupList::ScriptGroupList() { Group *g; FOR_ALL_GROUPS(g) { - if (g->owner == _current_company) this->AddItem(g->index); + if (g->owner == ScriptObject::GetCompany()) this->AddItem(g->index); } } -- cgit v1.2.3-54-g00ecf