1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Updated nativeAddCompressModule()

This commit is contained in:
Bryan Roe
2020-06-14 01:30:42 -07:00
parent 39a4f997d4
commit ca9bb50910
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -52,7 +52,7 @@ function nativeAddCompressedModule(name)
{
// MS Visual Studio has a maxsize limitation
var tmp = vstring;
ret = 'char *_' + name.split('-').join('') + ' = ILibMemory_Allocate(' + (tmp.length + value.length + 2) + ', 0, NULL, NULL);\n';
ret = 'char *_' + name.split('-').join('') + ' = ILibMemory_Allocate(' + (tmp.length + 1) + ', 0, NULL, NULL);\n';
var i = 0;
while (i < tmp.length)
{