Refactor: Organization Store and Leave Function Updates
Some checks failed
Build / Build (push) Failing after 11s

This commit refactors the organization store initialization and the leave function.

*   **Organization Store:** Changes the way the organization store is initialized by using a declaration array.
*   **Leave Function:** Improves the leave function by correcting a conditional statement to ensure proper handling of organization keys.
This commit is contained in:
Jacob Schmidt 2025-03-28 09:51:48 -05:00
parent 63df0b75dc
commit cf9bf922f1
2 changed files with 6 additions and 5 deletions

View File

@ -14,7 +14,7 @@
* Organization interface <OBJECT>
*/
private _orgStoreInterface = createHashMapObject [[
private _orgStoreDeclaration = [
["#type", "IOrganizationStore"],
["#create", {
private _store = GETMVAR(FORGE_STORE_REG,nil);
@ -128,7 +128,8 @@ private _orgStoreInterface = createHashMapObject [[
true
}]
]];
];
private _orgStoreInterface = createHashMapObject [_orgStoreDeclaration];
SETMVAR(FORGE_ORG_STORE_REG,_orgStoreInterface);
GETMVAR(FORGE_ORG_STORE_REG,nil)