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)
{
ChunkReference otherChunkReference = obj as ChunkReference;
if (otherChunkReference == null)
LocationReference otherLocationReference = obj as LocationReference;
if (otherLocationReference == null)
return false;
if(X == otherChunkReference.X && Y == otherChunkReference.Y &&
Plane == otherChunkReference.Plane)
if(X == otherLocationReference.X && Y == otherLocationReference.Y &&
Plane == otherLocationReference.Plane)
{
return true;
}