More beginner-friendly error message

This commit is contained in:
Kelsey Higham 2022-07-21 16:24:33 -07:00 committed by Bjorn
parent ff39a7485b
commit 50b321fb64
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ Vector lovrPoolAllocate(Pool* pool, VectorType type, float** data) {
}
float* lovrPoolResolve(Pool* pool, Vector vector) {
lovrAssert(vector.handle.generation == pool->generation, "Attempt to use a vector in a different generation than the one it was created in (vectors can not be saved into variables)");
lovrAssert(vector.handle.generation == pool->generation, "Attempt to use a temporary vector from a previous frame");
return pool->data + vector.handle.index;
}