mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-01 18:13:57 +00:00
Guard against null GameState in ReinitForCharacter
GameState() can return null during shutdown when camera re-init is triggered. Add a null check before accessing m_currentArea. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aa48001eb3
commit
e4dabad90c
@ -376,7 +376,7 @@ void Controller::HandleSDLEventImpl(SDL_Event* p_event)
|
||||
|
||||
void Controller::ReinitForCharacter()
|
||||
{
|
||||
if (IsRestrictedArea(GameState()->m_currentArea)) {
|
||||
if (!GameState() || IsRestrictedArea(GameState()->m_currentArea)) {
|
||||
m_active = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user