mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Fix ConsoleTrigger memory leak
This commit is contained in:
@ -56,10 +56,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
void plLogicModBase::ConsoleTrigger(plKey playerKey)
|
||||
{
|
||||
// Setup the event data in case this is a OneShot responder that needs it
|
||||
proPickedEventData *ed = new proPickedEventData;
|
||||
ed->fPicker = playerKey;
|
||||
ed->fPicked = nil;
|
||||
fNotify->AddEvent(ed);
|
||||
proPickedEventData ed;
|
||||
ed.fPicker = playerKey;
|
||||
ed.fPicked = nullptr;
|
||||
fNotify->AddEvent(&ed);
|
||||
|
||||
Trigger(false);
|
||||
|
||||
|
Reference in New Issue
Block a user