Fix incorrect identifier load in PDT evaluator.

This commit is contained in:
2022-12-05 11:43:31 +08:00
parent 69e4ecd0a9
commit d363042036

View File

@@ -46,13 +46,13 @@ namespace Cryville.Crtr {
}
else {
type = PdtInternalType.Undefined;
LoadNum(name);
LoadIdent(name);
value = _numbuf;
}
}
}
}
unsafe void LoadNum(int value) {
unsafe void LoadIdent(int value) {
fixed (byte* ptr = _numbuf) *(int*)ptr = value;
}
unsafe void LoadNum(float value) {