C
C#2mo ago
Alex

Null object reference when trying to update an instance

I'm trying to code chess but its kinda rough. https://pastebin.com/YxDs7Wry https://pastebin.com/AfJQxsi3 https://pastebin.com/BFZVnPN4 If I want to move a piece to a legal square, I try to update the old instance to a new instance by changing the coordinates and assigning the relevant piece art there, but the instances are always null.
Pastebin
Board.cs - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pieces.cs - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Moves.cs - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
0 Replies
No replies yetBe the first to reply to this messageJoin