]> git.r.bdr.sh - rbdr/super-polarity/blobdiff - SuperPolarity/Actors/GameActor.cs
Update source to compile on VS Studio for mac
[rbdr/super-polarity] / SuperPolarity / Actors / GameActor.cs
index 8015ffa30db9547eeefa36b61596cb4908297974..3f426c083fc4fb4f877f5bef3e522938b7da3b54 100644 (file)
@@ -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()