Skip to content

Commit

Permalink
fix: fix setGameMode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Sep 4, 2024
1 parent 30c372d commit a4d45ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy/api/PlayerAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ Local<Value> PlayerClass::setGameMode(const Arguments& args) {

bool res = false;
int newMode = args[0].asNumber().toInt32();
if ((newMode >= 0 && newMode <= 3) || newMode == 7) {
if ((newMode >= 0 && newMode <= 3) || (newMode >= 5 && newMode <= 6)) {
player->setPlayerGameType((GameType)newMode);
res = true;
}
Expand Down

0 comments on commit a4d45ad

Please sign in to comment.