1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 08:52:40 +01:00

Codechange: Remove ZeroedMemoryAllocator from ScriptText. (#13108)

ScriptText is much simplified from its original design. Use member initialisation instead.
This commit is contained in:
Peter Nelson
2024-11-20 22:16:14 +00:00
committed by GitHub
parent 13da98dab8
commit 6d3adc6169
2 changed files with 8 additions and 14 deletions

View File

@@ -20,13 +20,8 @@
#include "../../safeguards.h"
RawText::RawText(const std::string &text) : text(text)
{
}
ScriptText::ScriptText(HSQUIRRELVM vm) :
ZeroedMemoryAllocator()
ScriptText::ScriptText(HSQUIRRELVM vm)
{
int nparam = sq_gettop(vm) - 1;
if (nparam < 1) {