mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 00:42:45 +01:00
Codechange: Manage script event queue using smart pointers.
This commit is contained in:
@@ -33,11 +33,7 @@
|
||||
#include "../safeguards.h"
|
||||
|
||||
ScriptStorage::ScriptStorage() = default;
|
||||
ScriptStorage::~ScriptStorage()
|
||||
{
|
||||
/* Free our pointers */
|
||||
if (event_data != nullptr) ScriptEventController::FreeEventPointer();
|
||||
}
|
||||
ScriptStorage::~ScriptStorage() = default;
|
||||
|
||||
/**
|
||||
* Callback called by squirrel when a script uses "print" and for error messages.
|
||||
|
||||
Reference in New Issue
Block a user