[DiscordArchive] so when it calls SetMap on teleport, the old map (old m_currMap) is already deleted?
[DiscordArchive] so when it calls SetMap on teleport, the old map (old m_currMap) is already deleted?
Archived author: Foe • Posted: 2024-07-14T13:42:22.860000+00:00
Original source
Okay so this is a deeper rooted issue I think
Archived author: Foe • Posted: 2024-07-14T13:42:31.924000+00:00
Original source
SetMap is getting called twice
Archived author: Foe • Posted: 2024-07-14T13:42:49.686000+00:00
Original source
for all creatures and characters
Archived author: Foe • Posted: 2024-07-14T13:43:39.779000+00:00
Original source
and gameobjects for that matter
Archived author: Tea • Posted: 2024-07-14T13:43:47.441000+00:00
Original source
but it doesnt matter how many times SetMap is called, thats not what is killing the Map object
Archived author: Foe • Posted: 2024-07-14T13:44:48.112000+00:00
Original source
Yeah but it's like...
SetMap gets called, it frees the events like expected
Old map is deleted
SetMap gets called again, old map and eventMgr is already deleted, crash
Archived author: Foe • Posted: 2024-07-14T13:45:23.504000+00:00
Original source
That's what it looks like when stepping through breakpoints in SetMap at least
Archived author: Foe • Posted: 2024-07-14T13:45:51.304000+00:00
Original source
For any other map than BG's, the old map is not deleted in between the two SetMap calls
Archived author: Foe • Posted: 2024-07-14T13:48:47.077000+00:00
Original source
Anyway, workaround from our side is to just check that eventMgr exists, then it works fine
Archived author: Tea • Posted: 2024-07-14T13:50:55.098000+00:00
Original source
you cant rely on that