Fixed access violation in reinit routine that only happen in debug (of course).
Fixed access violation in reinit routine that only happen in debug (of course).

jonparrott/PhoenixCore,shaobozi/PhoenixCore,shaobozi/PhoenixCore,jonparrott/PhoenixCore