| 317 | } |
| 318 | |
| 319 | void GuiListBoxCtrl::addSelection( S32 index ) |
| 320 | { |
| 321 | // Range Check |
| 322 | if( index >= mItems.size() || index < 0 ) |
| 323 | { |
| 324 | Con::warnf("GuiListBoxCtrl::addSelection- index out of range!" ); |
| 325 | return; |
| 326 | } |
| 327 | |
| 328 | addSelection( mItems[index], index ); |
| 329 | |
| 330 | } |
| 331 | void GuiListBoxCtrl::addSelection( LBItem *item, S32 index ) |
| 332 | { |
| 333 | if( !mMultipleSelections ) |
no test coverage detected