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;