Some fixes

This commit is contained in:
Federico Cecchetto 2022-09-01 04:13:23 +02:00
parent 4e1aab66b2
commit 49a774c29b
3 changed files with 2 additions and 2 deletions

View File

@ -319,6 +319,7 @@ namespace fastfiles
reallocate_asset_pool_multiplier<game::ASSET_TYPE_SOUND, 2>();
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOADED_SOUND, 2>();
reallocate_asset_pool_multiplier<game::ASSET_TYPE_XANIM, 2>();
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOCALIZE, 2>();
}
void add_custom_level_load_zone(void* load, const char* name, bool localized, const size_t size_est)

View File

@ -115,8 +115,8 @@ namespace gsc
const auto script = assembler->output_script();
script_file_ptr->bytecodeLen = static_cast<int>(script.size());
const auto buffer_size = script.size() + 1;
const auto script_size = script.size();
const auto buffer_size = script_size + stack.size() + 2;
const auto buffer = allocate_buffer(buffer_size);
std::memcpy(buffer, script.data(), script_size);

View File

@ -243,7 +243,6 @@ namespace mapents
{
if (!should_load_addon_mapents())
{
printf("db_find_xasset_header_stub %s\n", name);
return game::DB_FindXAssetHeader(type, name, allow_create_default);
}