diff --git a/src/AutoInjectSystem.cs b/src/AutoInjectSystem.cs index 0cf3b1d..2115a38 100644 --- a/src/AutoInjectSystem.cs +++ b/src/AutoInjectSystem.cs @@ -69,7 +69,7 @@ namespace DCFApixels.DragonECS #if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); } #endif - return o.CanWrite == false; + return o.CanWrite; }) .Select(o => new InjectedProperty(o)));