diff --git a/src/client/component/script.cpp b/src/client/component/script.cpp index b18e02c2..b7559bec 100644 --- a/src/client/component/script.cpp +++ b/src/client/component/script.cpp @@ -51,7 +51,7 @@ namespace script auto rawfile = static_cast(allocator.allocate(24)); rawfile->name = name.c_str(); rawfile->buffer = file_string; - rawfile->len = data.length(); + rawfile->len = static_cast(data.length()); globals.loaded_scripts[name] = rawfile; }