diff options
Diffstat (limited to 'source/code.cpp')
-rw-r--r-- | source/code.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/code.cpp b/source/code.cpp index 2f10b90..e290440 100644 --- a/source/code.cpp +++ b/source/code.cpp @@ -24,7 +24,7 @@ #include <iostream> #include <string> -extern stmdsp::device *m_device; +extern std::shared_ptr<stmdsp::device> m_device; extern void log(const std::string& str); @@ -75,7 +75,7 @@ void compileEditorCode() } stmdsp::platform platform; - if (m_device != nullptr) { + if (m_device) { platform = m_device->get_platform(); } else { // Assume a default. |