diff --git a/library/modules/Textures.cpp b/library/modules/Textures.cpp index 5ece05193..c8dc33c84 100644 --- a/library/modules/Textures.cpp +++ b/library/modules/Textures.cpp @@ -40,9 +40,7 @@ struct ReservedRange { long get_new_texpos() { if (this->current == this->end) return -1; - current = this->current; - this->current++; - return current; + return this->current++; } static const int32_t size = 10000; // size of reserved texpos buffer