Fixed scripting engine crash and improved transformation system

This commit is contained in:
Antoine Pilote
2023-03-05 18:19:41 -05:00
parent 435d50e655
commit b1edeb387f
11 changed files with 99 additions and 32 deletions

View File

@@ -82,7 +82,9 @@ namespace Nuake {
path += ".wren";
std::string str = FileSystem::ReadFile(path, true);
result.source = str.c_str();
char* c = strcpy(new char[str.length() + 1], str.c_str());
result.source = c;
return result;
}