|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002066||OpenClonk||Engine - C4Script||public||2019-05-02 19:14||2019-05-02 19:14|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0002066: Remove ChangeDef|
|Description||The 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.
|Tags||No tags attached.|
|2019-05-02 19:14||Marky||New Issue|