Optimizing size

This commit is contained in:
The Gears of Progress
2024-09-25 12:47:13 -04:00
parent be954c2c52
commit be25471bbc
6 changed files with 3158 additions and 3468 deletions

View File

@@ -30,11 +30,11 @@ script_obj::script_obj(int nRun, int nNext_if_true, int nNext_if_false)
next_false_index = nNext_if_false;
}
std::string script_obj::get_text()
std::string_view script_obj::get_text()
{
if (has_text)
{
return std::string(text).data();
return text;
}
else
{