diff --git a/examples/SharedMemory/PhysicsDirect.cpp b/examples/SharedMemory/PhysicsDirect.cpp index d3ab39db9..091e160b7 100644 --- a/examples/SharedMemory/PhysicsDirect.cpp +++ b/examples/SharedMemory/PhysicsDirect.cpp @@ -1217,8 +1217,7 @@ bool PhysicsDirect::submitClientCommand(const struct SharedMemoryCommand& comman if (m_data->m_ownsCommandProcessor) { - CommandProcessorInterface *commandProcessor = dynamic_cast(m_data->m_commandProcessor); - btAssert(commandProcessor); + CommandProcessorInterface *commandProcessor = (CommandProcessorInterface *)m_data->m_commandProcessor; commandProcessor->tickPlugins(); } /*if (hasStatus)