Fixed QVector ASSERT failure "index out of range" in boat.cpp.

The ASSERT was triggered only in debug mode, although the code always
tried to access the 0 index of a QVector. Even when the vector size
was 0.