@@ -9,7 +9,7 @@ class $modify(MyGJShopLayer, GJShopLayer) {
99 if (!GJShopLayer::init (p0)) {
1010 return false ;
1111 }
12- if (p0 == ShopType::Normal ) {
12+ if (static_cast < int >(p0) == 0 ) {
1313 if (Mod::get ()->getSettingValue <bool >(" gd/GJShopLayer-Normal" )){
1414 if (auto bg = this ->getChildByID (" background" )) {
1515 bg->setVisible (false );
@@ -21,7 +21,7 @@ class $modify(MyGJShopLayer, GJShopLayer) {
2121
2222 this ->addChild (swelvyBG);
2323 }
24- } else if (p0 == ShopType::Secret ) {
24+ } else if (static_cast < int >(p0) == 1 ) {
2525 if (Mod::get ()->getSettingValue <bool >(" gd/GJShopLayer-Secret" )){
2626 if (auto bg = this ->getChildByID (" background" )) {
2727 bg->setVisible (false );
@@ -33,7 +33,7 @@ class $modify(MyGJShopLayer, GJShopLayer) {
3333
3434 this ->addChild (swelvyBG);
3535 }
36- } else if (p0 == ShopType::Community ) {
36+ } else if (static_cast < int >(p0) == 2 ) {
3737 if (Mod::get ()->getSettingValue <bool >(" gd/GJShopLayer-Community" )){
3838 if (auto bg = this ->getChildByID (" background" )) {
3939 bg->setVisible (false );
@@ -45,7 +45,7 @@ class $modify(MyGJShopLayer, GJShopLayer) {
4545
4646 this ->addChild (swelvyBG);
4747 }
48- } else if (p0 == ShopType::Mechanic ) {
48+ } else if (static_cast < int >(p0) == 3 ) {
4949 if (Mod::get ()->getSettingValue <bool >(" gd/GJShopLayer-Mechanic" )){
5050 if (auto bg = this ->getChildByID (" background" )) {
5151 bg->setVisible (false );
@@ -57,7 +57,7 @@ class $modify(MyGJShopLayer, GJShopLayer) {
5757
5858 this ->addChild (swelvyBG);
5959 }
60- } else if (p0 == ShopType::Diamond ) {
60+ } else if (static_cast < int >(p0) == 4 ) {
6161 if (Mod::get ()->getSettingValue <bool >(" gd/GJShopLayer-Diamond" )){
6262 if (auto bg = this ->getChildByID (" background" )) {
6363 bg->setVisible (false );
0 commit comments