diff --git a/src/saland/GameSpellState.cpp b/src/saland/GameSpellState.cpp index 6d9f2ca..c737710 100644 --- a/src/saland/GameSpellState.cpp +++ b/src/saland/GameSpellState.cpp @@ -90,6 +90,9 @@ bool GameSpellState::IsSpellSelectActive() { } void GameSpellState::ProcessInput(const SDL_Event& event, bool& processed) { + if (!data->spellSelectActive) { + return; + } UpdateMouseCoordinates(event, globalData.mousex, globalData.mousey); if (event.type == SDL_KEYDOWN) { if (event.key.keysym.sym == SDLK_ESCAPE) {