Less complex "index" and "at"

i-have-no-land-and-i-must-scream
trav5 8 months ago
parent b9358521cc
commit 897e43ae1e

@ -101,14 +101,14 @@ namespace
const ESM::Dialogue* at(size_t index) const
{
if (index >= getSize())
auto result = begin();
result += index;
if (result == end())
{
return nullptr;
}
auto result = begin();
result += index;
return &(*result);
}

Loading…
Cancel
Save