Skip to content

Commit

Permalink
fix: fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsubasa6848 committed Mar 6, 2024
1 parent dc2819e commit 5edcc0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ auto getSelfPluginInstance() -> ll::plugin::NativePlugin& {
if (!selfPluginInstance) {
throw std::runtime_error("selfPluginInstance is null");
}

return *selfPluginInstance;
}

Expand Down
1 change: 1 addition & 0 deletions src/Initialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void removeAllFloatingTexts() {
for (auto& key : RuntimeFloatingTexts) {
delete key.second;
}
RuntimeFloatingTexts.clear();
}

std::pair<int, int> getFloatingTextCount() { return {StaticFloatingTextList.size(), DynamicFloatingTextList.size()}; }
Expand Down

0 comments on commit 5edcc0c

Please sign in to comment.