Change: Replace ScriptLog data array with std::deque. (#10770)
Due to cyclic header dependency this requires moving the data types used by ScriptLog out of the ScriptLog class.
This commit is contained in:
@@ -36,7 +36,6 @@ ScriptStorage::~ScriptStorage()
|
||||
{
|
||||
/* Free our pointers */
|
||||
if (event_data != nullptr) ScriptEventController::FreeEventPointer();
|
||||
if (log_data != nullptr) ScriptLog::FreeLogPointer();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -315,11 +314,11 @@ ScriptStorage *ScriptInstance::GetStorage()
|
||||
return this->storage;
|
||||
}
|
||||
|
||||
void *ScriptInstance::GetLogPointer()
|
||||
ScriptLogTypes::LogData &ScriptInstance::GetLogData()
|
||||
{
|
||||
ScriptObject::ActiveInstance active(this);
|
||||
|
||||
return ScriptObject::GetLogPointer();
|
||||
return ScriptObject::GetLogData();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user