openclonk/planet/Objects.ocd/Libraries.ocd/ClonkUseControl.ocd
Mark 6cb154fabd UseControl: Prevent possible call on null object
This usually happens in the following case from ClonkControl.ocd/Script.c:

// Release commands are always forwarded even if contents is 0, in case we
// need to cancel use of an object that left inventory
if (contents || (status == CONS_Up && GetUsedObject()))
{
	if (ControlUse2Script(ctrl, x, y, strength, repeat, status, contents))
		return true;
}

It could also be necessary that, instead of contents, either "this", or GetUsedObject() should be passed. Not sure which one was intended.
2017-06-21 00:06:12 +02:00
..
DefCore.txt Control: Extract library for using objects 2017-01-03 18:03:32 +01:00
Script.c UseControl: Prevent possible call on null object 2017-06-21 00:06:12 +02:00