This PR attempts to improve that message by mentioning memnew(), in order to help folks learn about it, and hopefully reduce the number of support requests related to it. :-)
This also removes the ERR_PRINT() that duplicates the message - I'm not sure why that was there, but I don't think it should be necessary.
New developers not knowing the need to use
memnew()
instead ofnew
is a common cause for support requests.After PR https://github.com/godotengine/godot-cpp/pull/1446, Godot will crash if a developer forgot to use
memnew()
.This PR attempts to improve that message by mentioning
memnew()
, in order to help folks learn about it, and hopefully reduce the number of support requests related to it. :-)This also removes the
ERR_PRINT()
that duplicates the message - I'm not sure why that was there, but I don't think it should be necessary.