Attempting to create an object via new type() where type is a variable holding an instance of an object causes a confusing error
Numbered Steps to Reproduce Problem: See code
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
var/type = /datum
new type() // this is fine, type is /datum
type = new /datum
new type() // runtime error: Cannot create objects of type /datum.
Expected Results: The error message to be clear that the issue is that type needs to be a type, not an instance.
Actual Results: "Cannot create objects of type /datum."
Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur? N/A
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Unknown
Workarounds: always use ispath() before using new type() on unknown values.