changeset 2792 | a3efbf1c4500 |
parent 2790 | 83630d5f94db |
child 2801 | 24739a3bf5e3 |
--- a/hedgewars/uGears.pas Wed Feb 10 10:03:13 2010 +0000 +++ b/hedgewars/uGears.pas Wed Feb 10 13:53:31 2010 +0000 @@ -425,7 +425,7 @@ InsertGearToList(gear); AddGear:= gear; -ScriptCall('onGearAdd', LongInt(gear)); +ScriptCall('onGearAdd', gear^.uid); end; procedure DeleteGear(Gear: PGear); @@ -434,7 +434,7 @@ k: boolean; begin -ScriptCall('onGearDelete', LongInt(gear)); +ScriptCall('onGearDelete', gear^.uid); DeleteCI(Gear);