Wrong assertion fixed
This commit is contained in:
parent
5a1dbda3c3
commit
f13d38bda9
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace dk {
|
|||
|
||||
template <uint32_t D>
|
||||
void Viewport<D>::setFrom (const coords& parFrom) {
|
||||
DK_ASSERT(this->size() + parFrom < m_tyler.map_size());
|
||||
DK_ASSERT(this->size() + parFrom <= m_tyler.map_size());
|
||||
m_view.set_position(parFrom);
|
||||
m_tyler.preload(m_view.position(), m_view.position() + this->size());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue