Anonymous Login
2019-07-20 20:24 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002066OpenClonkEngine - C4Scriptpublic2019-05-02 19:14
ReporterMarky 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0002066: Remove ChangeDef
DescriptionThe function can cause all kinds of problems, the worst of them being that bad calls to this function can reduce the Def->Count to negative numbers (potentially if ChangeDef happens during an abort call of a function of the only instance of an object)

The function should issue a warning. Currently, it is used 9 times throughout the game, for example for the burning object.

As a replacement, we'd need a ReplaceObject() function that can have the correct container, position, etc.

However, this may add problems where the original object should indeed *change* to the new object, so that references to it are preserved, etc.

TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2019-05-02 19:14 Marky New Issue
+Issue History