Skip to content
Commit e0a7c723 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Comparing two invalid Entities should always return true

Every time a new invalid Entity is constructed, it's assigned a decremental
negative number. Since two invalid Entities always have different negative
numbers, simple Item() == Item() comparision would return false, as internally
only IDs were compared. From logical point of view it makes however sense
for invalid Entities to be considered equal.

As of now, operator==() and operator!=() takes entity validity in consideration,
so Item() == Item() is always true and Item() != Item() is always false.
parent 6e9ddc24
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment