diff --git a/core/logic/Database.cpp b/core/logic/Database.cpp index a4f4cb07..e691bf28 100644 --- a/core/logic/Database.cpp +++ b/core/logic/Database.cpp @@ -353,6 +353,12 @@ void DBManager::RemoveDriver(IDBDriver *pDriver) } } + /* Someone unloaded the default driver? Silly.. */ + if (pDriver == m_pDefault) + { + m_pDefault = NULL; + } + /* Now that the driver is gone, we have to test the think queue. * Whatever happens therein is up to the db op! */