Skip to content

Commit

Permalink
Switch: Fix rubberband crash, re-appeared in latest toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Sep 15, 2019
1 parent afa6526 commit 9f5f36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -513,7 +513,7 @@ if(BUILD_NX)
-fif-conversion2
-finline-functions-called-once
-fipa-profile
#the commented three flags here cause the crash in rubberbands.cc
#the commented three flags here used to cause a crash in rubberbands.cc (see FIXME comment there)
#-fipa-pure-const
-fipa-reference
#-fmerge-constants
Expand Down
3 changes: 3 additions & 0 deletions src/others/Rubberband.cc
Expand Up @@ -38,7 +38,10 @@ namespace enigma {
anchor1 = dynamic_cast<Actor *>((Object *)val);
ASSERT(anchor1 != NULL, XLevelRuntime, "Rubberband: 'anchor1' is no actor");
ASSERT(anchor1 != anchor2.ac, XLevelRuntime, "Rubberband: 'anchor1' is identical to 'anchor2'");
#ifndef __SWITCH__
// FIXME causes crash on Switch when loading any level with rubberbands
switchAnchor(old, anchor1, anchor2Object());
#endif
} else if (key == "anchor2") {
Object * old = anchor2Object();
Object * obj = val;
Expand Down

0 comments on commit 9f5f36d

Please sign in to comment.