From 6a9a22ac2571c18d54182718d38f12debea982e6 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 30 Sep 2021 19:37:24 -0400 Subject: [PATCH] Fix Bug In Texture Scaling Code --- VERSION | 2 +- docs/CHANGELOG.md | 3 +++ mods/src/textures/textures.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 21bb5e1..bda8fbe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.5 +2.2.6 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 56474a8..5c74e0a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +**2.2.5** +* Fix Bug In Texture Scaling Code + **2.2.5** * Scale Animated Textures * Add More Blocks To Expanded Creative Inventory diff --git a/mods/src/textures/textures.cpp b/mods/src/textures/textures.cpp index 4b54f91..641d4ce 100644 --- a/mods/src/textures/textures.cpp +++ b/mods/src/textures/textures.cpp @@ -47,7 +47,7 @@ HOOK(glTexImage2D, void, (GLenum target, GLint level, GLint internalformat, GLsi HOOK(glDeleteTextures, void, (GLsizei n, const GLuint *textures)) { // Remove Old Data for (int i = 0; i < n; i++) { - GLint id = textures[n]; + GLint id = textures[i]; std::vector::iterator it = get_texture_data().begin(); while (it != get_texture_data().end()) { texture_data data = *it;