Skip to content

Commit

Permalink
ChangeLevel: Recognize player_-001
Browse files Browse the repository at this point in the history
Fixes: issue #1461
  • Loading branch information
dscharrer committed Jul 5, 2020
1 parent 5bf9c06 commit 0f3e349
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scene/ChangeLevel.cpp
Expand Up @@ -154,6 +154,11 @@ static Entity * convertToValidIO(const std::string & idString) {
return NULL;
}

if(idString == "player_-001") {
// Used in same cases by vanilla AF
return entities.player();
}

arx_assert_msg(
idString.find_first_not_of("abcdefghijklmnopqrstuvwxyz_0123456789") == std::string::npos,
"bad interactive object id: \"%s\"", idString.c_str()
Expand Down

0 comments on commit 0f3e349

Please sign in to comment.