Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking Outside of Map Bounds #14

Closed
TBye101 opened this issue May 2, 2018 · 0 comments
Closed

Clicking Outside of Map Bounds #14

TBye101 opened this issue May 2, 2018 · 0 comments
Assignees
Labels

Comments

@TBye101
Copy link
Owner

TBye101 commented May 2, 2018

Clicking outside of map bounds causes an exception due to the selector not realizing this was out of the map bounds.

System.IndexOutOfRangeException
HResult=0x80131508
Message=Index was outside the bounds of the array.
Source=MagicalLifeGUIWindows
StackTrace:
at MagicalLifeGUIWindows.Input.History.HistoricalInputFactory.SingleSelect(InputEventArgs e) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\History\HistoricalInputFactory.cs:line 32
at MagicalLifeGUIWindows.Input.History.HistoricalInputFactory.Generate(InputEventArgs e) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\History\HistoricalInputFactory.cs:line 19
at MagicalLifeGUIWindows.Input.History.InputHistory.MapMouseClick(MouseEventArgs e) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\History\InputHistory.cs:line 142
at MagicalLifeGUIWindows.Input.BoundHandler.ContainerClick(MouseEventArgs clickData) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\BoundHandler.cs:line 101
at MagicalLifeGUIWindows.Input.BoundHandler.MouseListener_MouseClicked(Object sender, MouseEventArgs e) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\BoundHandler.cs:line 70
at MonoGame.Extended.Input.InputListeners.MouseListener.CheckButtonReleased(Func`2 getButtonState, MouseButton button)
at MonoGame.Extended.Input.InputListeners.MouseListener.Update(GameTime gameTime)
at MagicalLifeGUIWindows.Input.BoundHandler.UpdateMouseInput(GameTime time) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Input\BoundHandler.cs:line 80
at MagicalLifeGUIWindows.Game1.Update(GameTime gameTime) in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Game1.cs:line 87
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at MagicalLifeGUIWindows.Program.Main() in D:\Git Repositories\EarthWithMagic\MagicalLifeGUIWindows\Program.cs:line 25

@TBye101 TBye101 added the bug label May 2, 2018
@TBye101 TBye101 self-assigned this May 2, 2018
@TBye101 TBye101 closed this as completed May 30, 2018
TBye101 added a commit that referenced this issue May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant