Skip to content

Commit

Permalink
fix(core): SDK CHandle, Temporary Menu Crash, Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzzis committed Jul 22, 2024
1 parent cb3779a commit 5e3f3f0
Show file tree
Hide file tree
Showing 5 changed files with 526 additions and 524 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ jobs:

- name: Prepare ZIP Files
run: |
(cd build; zip -qq -r ../../Swiftly.Plugin.Linux.zip . -i build/Swiftly.Plugin.Linux/*)
(cd build; zip -qq -r ../../Swiftly.Plugin.Windows.zip . -i build/Swiftly.Plugin.Windows/*)
(cd build; zip -qq -r ../../Swiftly.Plugin.Depot.Linux.zip . -i build/Swiftly.Plugin.Depot.Linux/*)
sudo apt install p7zip-full -y;
(cd build/Swiftly.Plugin.Linux; 7z a -tzip ../../../Swiftly.Plugin.Linux.zip *)
(cd build/Swiftly.Plugin.Windows; 7z a -tzip ../../../Swiftly.Plugin.Windows.zip *)
(cd build/Swiftly.Plugin.Depot.Linux; 7z a -tzip ../../../Swiftly.Plugin.Depot.Linux.zip *)
echo "PATH_ARTIFACTS=$(cd ..; pwd)" >> $GITHUB_ENV
- name: Release
Expand Down
5 changes: 3 additions & 2 deletions src/menus/MenuManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ void MenuManager::UnregisterMenu(std::string id)
if (!player->HasMenuShown())
continue;

if (player->GetMenu()->GetID() == id)
player->HideMenu();
if(player->GetMenu())
if (player->GetMenu()->GetID() == id)
player->HideMenu();
}

Menu *menu = this->menu_ids.at(id);
Expand Down
Loading

0 comments on commit 5e3f3f0

Please sign in to comment.