- fixed: String CVARs get stored as a const char *, not an FString, so the ls opcode cannot be used to read their content.
This commit is contained in:
parent
c4cb94123f
commit
5bc26763cb
3 changed files with 13 additions and 1 deletions
|
|
@ -6522,7 +6522,7 @@ ExpEmit FxCVar::Emit(VMFunctionBuilder *build)
|
|||
|
||||
case CVAR_String:
|
||||
build->Emit(OP_LKP, addr.RegNum, build->GetConstantAddress(&static_cast<FStringCVar *>(CVar)->Value, ATAG_GENERIC));
|
||||
build->Emit(OP_LS, dest.RegNum, addr.RegNum, nul);
|
||||
build->Emit(OP_LCS, dest.RegNum, addr.RegNum, nul);
|
||||
break;
|
||||
|
||||
case CVAR_DummyBool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue