woolstrand / RealRuins

11 stars 11 forks source link

Tried to use an uninitialized DefOf of type SoundDefOf #43

Closed Naprogramuji closed 4 years ago

Naprogramuji commented 4 years ago

Tried to use an uninitialized DefOf of type SoundDefOf. DefOfs are initialized right after all defs all loaded. Uninitialized DefOfs will return only nulls. (hint: don't use DefOfs as default field values in Defs, try to resolve them in ResolveReferences() instead) Verse.Log:Warning(String, Boolean) RimWorld.DefOfHelper:EnsureInitializedInCtor(Type) RimWorld.SoundDefOf:.cctor() RealRuins.Page_RealRuins:.ctor()

woolstrand commented 4 years ago

fixed