1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

Bugfix: Correct LocationReference class' equating logic

This commit is contained in:
Starbeamrainbowlabs 2017-01-07 20:20:20 +00:00
parent 37051e0f7b
commit d8677a6e4b

View file

@ -23,12 +23,12 @@ namespace Nibriboard.RippleSpace
public override bool Equals(object obj) public override bool Equals(object obj)
{ {
ChunkReference otherChunkReference = obj as ChunkReference; LocationReference otherLocationReference = obj as LocationReference;
if (otherChunkReference == null) if (otherLocationReference == null)
return false; return false;
if(X == otherChunkReference.X && Y == otherChunkReference.Y && if(X == otherLocationReference.X && Y == otherLocationReference.Y &&
Plane == otherChunkReference.Plane) Plane == otherLocationReference.Plane)
{ {
return true; return true;
} }