Skip to content

Commit

Permalink
Don't crash when selecting top/bottom of transition voxels.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Jul 28, 2024
1 parent e3e26de commit b3cde4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OpenTESArena/src/GameLogic/MapLogicController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ void MapLogicController::handleMapTransition(Game &game, const Physics::Hit &hit
}
else
{
DebugUnhandledReturnMsg(VoxelInt3, std::to_string(static_cast<int>(facing)));
DebugLogError("Invalid EnterInterior returnCoord facing " + std::to_string(static_cast<int>(facing)) + ".");
return VoxelInt3::Zero;
}
}();

Expand Down Expand Up @@ -316,7 +317,8 @@ void MapLogicController::handleMapTransition(Game &game, const Physics::Hit &hit
}
else
{
DebugUnhandledReturnMsg(VoxelInt2, std::to_string(static_cast<int>(facing)));
DebugLogError("Invalid CityGate transitionDir facing " + std::to_string(static_cast<int>(facing)) + ".");
return VoxelUtils::North;
}
}();

Expand Down

0 comments on commit b3cde4c

Please sign in to comment.