Fixes for weapon writing

This commit is contained in:
Louvenarde 2024-01-13 18:08:06 +01:00
parent 3f271ec1ed
commit afb9e5da47

View File

@ -396,6 +396,7 @@ namespace Assets
continue;
}
buffer->align(Utils::Stream::ALIGN_4);
buffer->saveMax(sizeof(Game::snd_alias_list_t*));
buffer->saveString(def->bounceSound[i]->aliasName);
}
@ -525,7 +526,7 @@ namespace Assets
if (def->physCollmap)
{
dest->physCollmap = builder->saveSubAsset(Game::XAssetType::ASSET_TYPE_PHYSCOLLMAP, def->overlayMaterialEMPLowRes).physCollmap;
dest->physCollmap = builder->saveSubAsset(Game::XAssetType::ASSET_TYPE_PHYSCOLLMAP, def->physCollmap).physCollmap;
}
if (def->projectileModel)