update mw2019 string ids

This commit is contained in:
xensik 2021-11-13 14:55:33 +01:00
parent 3ff9a1bb6a
commit 11827cffa9
2 changed files with 2 additions and 2 deletions

View File

@ -552,7 +552,7 @@ void assembler::assemble_field_variable(const gsc::instruction_ptr& inst)
script_->write<std::uint32_t>(field_id);
if (field_id > 0x13160) // 0xE2C0 or 0x13160
if (field_id > 0x13738)
{
stack_->write<std::uint32_t>(0);
stack_->write_c_string(inst->data[0]);

View File

@ -438,7 +438,7 @@ void disassembler::disassemble_field_variable(const gsc::instruction_ptr& inst)
std::uint32_t field_id = script_->read<std::uint32_t>();
std::string field_name;
if(field_id > 0x13160) // 0xE2C0 or 0x13160
if(field_id > 0x13738)
{
auto temp = stack_->read<std::uint32_t>();
field_name = temp == 0 ? stack_->read_c_string() : std::to_string(temp);