summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2024-06-02 00:36:24 -0400
committerLywx <kiritodev01@gmail.com>2024-06-01 22:47:56 -0600
commitbeda6c05a39477ba83697ea51bdf3ff30bcaa417 (patch)
tree7e114aaeb53f32c01a9f444624f77561a863eb7f
parent3b64734201866196e4ca927d9552fb0aef5a3308 (diff)
fix pack segfault
-rw-r--r--src/storm/SWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storm/SWrapper.cpp b/src/storm/SWrapper.cpp
index 00da1de..7b00aa0 100644
--- a/src/storm/SWrapper.cpp
+++ b/src/storm/SWrapper.cpp
@@ -20,7 +20,7 @@ SWrapper::SWrapper(const std::string& path) {
}
bool SWrapper::CreateFile(const std::string& path, std::vector<char> data) {
- if(Companion::Instance->IsDebug()){
+ if(Companion::Instance != nullptr && Companion::Instance->IsDebug()){
SPDLOG_INFO("Creating debug file: debug/{}", path);
std::string dpath = "debug/" + path;
if(!fs::exists(fs::path(dpath).parent_path())){