Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenAlex committed Jul 24, 2024
1 parent b8bcf89 commit bd11c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/NyaFloatingUI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DECLARE_CLASS_CODEGEN(Nya, NyaFloatingUI, UnityEngine::MonoBehaviour,
void onUnPause();
void onResultsScreenActivate();
void onResultsScreenDeactivate();
void updateCoordinates(UnityW<BSML::FloatingScreen> self, const BSML::FloatingScreenHandleEventArgs& args);
void updateCoordinates(BSML::FloatingScreen* self, const BSML::FloatingScreenHandleEventArgs& args);
void updateCoordinates(UnityEngine::Transform* transform);
void updateCoordinates(UnityEngine::Vector3 position, UnityEngine::Vector3 eulerRotation);
void OnActiveSceneChanged(UnityEngine::SceneManagement::Scene current, UnityEngine::SceneManagement::Scene _);
Expand Down
2 changes: 1 addition & 1 deletion src/NyaFloatingUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ namespace Nya {

void NyaFloatingUI::updateCoordinates(BSML::FloatingScreen* self, const BSML::FloatingScreenHandleEventArgs& args) {
DEBUG("Updating coordinates called from handle event");
if (!self) {
if (self == nullptr || self->___m_CachedPtr.m_value == nullptr) {
ERROR("Floating screen not found when updating coordinates");
return;
};
Expand Down

0 comments on commit bd11c5b

Please sign in to comment.