We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e2987 commit 0b0e538Copy full SHA for 0b0e538
1 file changed
src/d/actor/d_a_myna.cpp
@@ -363,6 +363,18 @@ int daMyna_c::destroy() {
363
mpMorf->stopZelAnime();
364
}
365
366
+#ifdef TARGET_PC
367
+ // !@bug d_a_myna.rel unload used to zero these file-statics; with static linking they dangle across scenes.
368
+ daMyna_LightActor = NULL;
369
+ daMyna_evtTagActor0 = NULL;
370
+ daMyna_evtTagActor1 = NULL;
371
+ daMyna_actor_count = 0;
372
+ for (int i = 0; i < 10; i++) {
373
+ daMyna_targetActor[i] = NULL;
374
+ daMyna_subActor[i] = NULL;
375
+ }
376
+#endif
377
+
378
#if DEBUG
379
l_HOSTIO.removeHIO();
380
#endif
0 commit comments