I've been trying to make a plugin for Assimp for a while now, and for the most part, it works until the end of the function, which by then an exception is thrown about the std::unique_ptr variable I used. I compared its use to other plugins and I'm... baffled. It seems to be okay, I thought?

My apparently faulty std::unique_ptr: assimp/ISM2Loader.cpp at master * NebuHiiEjamu/assimp * GitHub

Working code with unique_ptr by someone else: assimp/ASELoader.cpp at master * NebuHiiEjamu/assimp * GitHub