Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
manolis.savva@gmail.com committed Jun 21, 2011
1 parent f2c5fe9 commit bb8824d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modelViewer/modelViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void ModelViewer::Init()

_database.Init(_params);

std::cout << "\nLoading database from " << _params.databaseDirectory << '\n\n';
std::cout << "\nLoading database from " << _params.databaseDirectory << '\n';

_modelList = _database.TextQuery(_params.textQuery);

Expand Down Expand Up @@ -123,7 +123,7 @@ void ModelViewer::SpecialKeyPress(int key)
{
case GLUT_KEY_RIGHT:
_activeModelIndex++;
if(_activeModelIndex == _modelList.size())
if(_activeModelIndex == (int)_modelList.size())
{
_activeModelIndex = 0;
}
Expand All @@ -134,7 +134,7 @@ void ModelViewer::SpecialKeyPress(int key)
_activeModelIndex--;
if(_activeModelIndex == -1)
{
_activeModelIndex = _modelList.size() - 1;
_activeModelIndex = (int)_modelList.size() - 1;
}
_activeModel = _assets.GetModel(_params, _modelList[_activeModelIndex]->hash);
WriteModelInfo();
Expand Down

0 comments on commit bb8824d

Please sign in to comment.