Commit f371471a authored by mercury233's avatar mercury233

fix by szefo09

fixed a bug when a client was displaying certain amount of cards in
deck search menu on certain resolutions the game would crash
parent 8ff415bc
......@@ -212,7 +212,8 @@ public class SuperScrollView
{
moveFloat = panel.baseClipRegion.y + (panel.GetViewSize().y - heightOfEach) / 2 - 10;
maxFloat = -(heightOfEach * Items.Count - panel.GetViewSize().y + 20);
if (maxFloat > 0)
// 1900x1000 resolution and 11 cards displayed caused this value to reach exactly 0 and crash the game.
if (maxFloat >= 0)
{
maxFloat = -0.001f;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment