If index 0 is valid (which the first check indicates is true), N items would be in indices 0 through N-1 and the original check is correct.
> "if ( index < 0 || index >= (int)m_UserMessages.Count() )" > Shouldn't this be: > "if ( index < 0 || index > (int)m_UserMessages.Count() )" > Or am I mistaken? > Thanks. > - voogru. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

