| MarianIoanDaniel a întrebat:

Cum pot sa rezolv eroarea asta la terraria?

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.Main.LoadHair(Int32 i)
at Terraria.Main.DrawPlayer(Player drawPlayer, Vector2 Position, Single rotation, Vector2 rotationOrigin, Single shadow)
at Terraria.GameContent.UI.Elements.UICharacter.DrawSelf(Sp riteBatch spriteBatch)
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.DrawChildren(SpriteBatch spriteBatch)
at Terraria.UI.UIElement. Draw(SpriteBatch spriteBatch)
at Terraria.GameContent.UI.Elements.UIList.UIInnerList.Draw Children(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.DrawChildren(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.DrawChildren(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.DrawChildren(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch)
at Terraria.UI.UIElement.DrawChildren(SpriteBatch spriteBatch)
at Terraria.UI.UIElement. Draw(SpriteBatch spriteBatch)
at Terraria.UI.UserInterface.Draw(SpriteBatch spriteBatch, GameTime time)
at Terraria.Main.DrawMenu(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle( Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Wi ndows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(In t32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System .Windows.Forms.UnsafeNativeMethods.IMsoComponentManager. FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessag eLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessag eLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame(String[] args)