When enabling some mint guards, the mint method crashes. This commit fixes the issue by allocating memory with memnew to comply with godot-cpp for godot 4.3.
Please check if the PR fulfills these requirements
[ ] The commit(s) are rebased and squashed
[ ] Commits are concise and does not contain several different changes.
[ ] Issue is linked.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
When enabling some mint guards, the mint method crashes. This commit fixes the issue by allocating memory with memnew to comply with godot-cpp for godot 4.3.
Please check if the PR fulfills these requirements
[ ] The commit(s) are rebased and squashed
[ ] Commits are concise and does not contain several different changes.
[ ] Issue is linked.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Other information: