MathewWi / texmod

Automatically exported from code.google.com/p/texmod
0 stars 0 forks source link

crash when selected texture is above the upper limit #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have the game load a large amount of textures, and go to around the end of 
the list
2. change the game state, so that there's much less textures. for example, exit 
to main menu. 
3. try to scroll back or forward.

What is the expected output? What do you see instead?
expected the selected texture to jump from the 'too high' value to the highest 
possible. instead the whole thing crashes. 
(so for example, if i had texture 1202 selected but the new max is 720, 
pressing the prev button should go to 720. maybe it tries to change to 1201, 
but that doesn't exist anymore so the game breaks)

What version of the product are you using? On what operating system?
2.0 alpha r53, windows xp sp3 32 bit.

Please provide any additional information below.

Original issue reported on code.google.com by yarrrmateys on 27 May 2013 at 6:08