Skip to content

Commit

Permalink
fix nullptr in shutdown method (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Tristan Grespinet <dev003@infra.utopia-rise.com>
  • Loading branch information
CedNaru committed Jul 16, 2020
1 parent 633ea95 commit f5ab77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/godot_fmod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ void Fmod::updateInstance3DAttributes(FMOD::Studio::EventInstance *instance, Obj
void Fmod::shutdown() {
isInitialized = false;
isNotinitPrinted = false;
system = nullptr;
coreSystem = nullptr;
ERROR_CHECK(system->unloadAll());
ERROR_CHECK(system->release());
system = nullptr;
coreSystem = nullptr;
GODOT_LOG(0, "FMOD Sound System: System released")

}
Expand Down

0 comments on commit f5ab77d

Please sign in to comment.