diff --git a/loader/include/Geode/platform/windows.hpp b/loader/include/Geode/platform/windows.hpp index 5af71b81..33dbe263 100644 --- a/loader/include/Geode/platform/windows.hpp +++ b/loader/include/Geode/platform/windows.hpp @@ -75,6 +75,10 @@ namespace geode::cast { std::is_polymorphic_v>, "Input is not a polymorphic type" ); + if (!ptr) { + return After(); + } + auto basePtr = dynamic_cast(ptr); auto vftable = *reinterpret_cast(basePtr);