From 25cc778fce4e02784ec41aeffc46293a4093a23a Mon Sep 17 00:00:00 2001 From: shevernitskiy Date: Sun, 10 Sep 2023 11:17:24 +0300 Subject: [PATCH] review refactor --- library/modules/Textures.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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