From 30f20fb1fd42d3eb160255e22df6669de969fda5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jun 2003 05:20:57 +0000 Subject: [PATCH] oops; guarantee that GetTapNote(t,row) is always empty for row<0 --- stepmania/src/NoteData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteData.h b/stepmania/src/NoteData.h index 6d9c1fc42e..60cee62033 100644 --- a/stepmania/src/NoteData.h +++ b/stepmania/src/NoteData.h @@ -47,9 +47,9 @@ public: /* Return the note at the given track and row. Row may be out of * range; pretend the song goes on with TAP_EMPTYs indefinitely. */ - inline TapNote GetTapNote(unsigned track, unsigned row) const + inline TapNote GetTapNote(unsigned track, int row) const { - if(row < 0 || row >= m_TapNotes[track].size()) return TapNote(TAP_EMPTY); + if(row < 0 || row >= (int) m_TapNotes[track].size()) return TapNote(TAP_EMPTY); return m_TapNotes[track][row]; } void MoveTapNoteTrack(int dest, int src);