X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/05e4b948df39b47d33067049cf51fd3be7749031..8ae8ea0d77ec654dd693b3912562b07a2b539b0f:/SuperPolarity/Actors/GameActor.cs?ds=sidebyside diff --git a/SuperPolarity/Actors/GameActor.cs b/SuperPolarity/Actors/GameActor.cs index 8015ffa..3f426c0 100644 --- a/SuperPolarity/Actors/GameActor.cs +++ b/SuperPolarity/Actors/GameActor.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -55,7 +55,11 @@ namespace SuperPolarity { base.Draw(spriteBatch); - spriteBatch.Draw(Texture, Position, null, Color, Angle, Origin, 1f, SpriteEffects.None, 0f); + try { + spriteBatch.Draw(Texture, Position, null, Color, Angle, Origin, 1f, SpriteEffects.None, 0f); + } catch (ArgumentNullException) { + Console.WriteLine ("Where'd the texture go?."); + } } public override void CleanUp()