2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 18:27:42 +00:00

Various bug fixes

This commit is contained in:
Jack Andersen
2018-10-26 20:16:12 -10:00
parent 29dad50cca
commit 427f5d8786
10 changed files with 28 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ IGameArea::Dock::Dock(urde::CInputStream& in, const zeus::CTransform& xf)
TAreaId IGameArea::Dock::GetConnectedAreaId(s32 other) const
{
if (u32(other) >= x4_dockReferences.size() || other < 0)
if (x4_dockReferences.empty())
return kInvalidAreaId;
return x4_dockReferences[other].x0_area;