https://paste.mod.gg/puwulekiye.cpp
I\'m trying to save an object with addvalue, where the type of object/type of shape is dependent on user input. I keep getting err