Difference between revisions of "Talk:Door"

Jump to navigation Jump to search
m
(→‎Random teleports: new section)
Line 30: Line 30:
== Random teleports ==
== Random teleports ==


The reason the assertion failure and subsequent crash occur when saving these is because the code to save them, within `TESObjectDOOR::SaveForm`, looks like this:
The reason the assertion failure and subsequent crash occur when saving these is because the code to save them, within <code>TESObjectDOOR::SaveForm</code>, looks like this:


<pre lang="C++">
<pre lang="C++">
Line 41: Line 41:
       }
       }
       _WriteSubrecord('TNAM', &to_write, sizeof(to_write));
       _WriteSubrecord('TNAM', &to_write, sizeof(to_write));
   } while (++i, this->random_destinations.size() > 0); // should've been: ++i < this->random_destinations.size()
   } while (++i, this->random_destinations.size() != 0); // should've been: ++i < this->random_destinations.size()
}
}
</pre>
</pre>


Verified by reverse-engineering the LE CK. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 21:22, 30 June 2024 (EDT)
Verified by reverse-engineering the LE CK. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 21:22, 30 June 2024 (EDT)
142

edits

Navigation menu