diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-03-25 18:49:19 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-03-25 18:49:19 -0400 |
| commit | 8ef6dd4285120d1b29865f4876a8651f4c4cd6a4 (patch) | |
| tree | ea94f99eba74c969b1da49e86f938b318f047d32 /src/d/d_snap.cpp | |
| parent | c7cd6b25b29e00245b07dae0b0e5674908b82a7f (diff) | |
Fix some names
Diffstat (limited to 'src/d/d_snap.cpp')
| -rw-r--r-- | src/d/d_snap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/d_snap.cpp b/src/d/d_snap.cpp index f7961a49..6220b1c9 100644 --- a/src/d/d_snap.cpp +++ b/src/d/d_snap.cpp @@ -1446,11 +1446,11 @@ int dSnap_PhotoIndex2TableIndex(int photoIndex) { } /* 800CCFE4-800CD00C .text dSnap_GetFigRoomId__Fi */ -u8 dSnap_GetFigRoomId(int r3) { - if (r3 >= 0x86) { +u8 dSnap_GetFigRoomId(int tableIndex) { + if (tableIndex >= (int)ARRAY_SIZE(l_CharaData)) { return 0xFF; } - return l_CharaData[r3].figRoom; + return l_CharaData[tableIndex].figRoom; } /* 800CD00C-800CD068 .text __ct__9dSnap_ObjFv */ |
