Why the fuck did I used dynamic_cast.