[Scummvm-git-logs] scummvm branch-2-9 -> 34e06e84ae5a5cec9063036c37ac3726968072d8
dreammaster
noreply at scummvm.org
Wed Nov 27 20:12:11 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
34e06e84ae M4: cNode is signed in save/restore conv state
Commit: 34e06e84ae5a5cec9063036c37ac3726968072d8
https://github.com/scummvm/scummvm/commit/34e06e84ae5a5cec9063036c37ac3726968072d8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-11-27T12:11:59-08:00
Commit Message:
M4: cNode is signed in save/restore conv state
Changed paths:
engines/m4/adv_r/conv_io.cpp
diff --git a/engines/m4/adv_r/conv_io.cpp b/engines/m4/adv_r/conv_io.cpp
index 4341f2023c4..66d188140b1 100644
--- a/engines/m4/adv_r/conv_io.cpp
+++ b/engines/m4/adv_r/conv_io.cpp
@@ -451,7 +451,7 @@ static void conv_save_state(Conv *c) {
//----------------------------------------------------------------------------
// finish filling in conv_save_buff data with num of entries etc.
- WRITE_LE_UINT32(&conv_save_buff[offset], myCNode);
+ WRITE_LE_INT32(&conv_save_buff[offset], myCNode);
offset += sizeof(int32);
WRITE_LE_UINT32(&conv_save_buff[offset], num_decls);
@@ -592,7 +592,7 @@ static Conv *conv_restore_state(Conv *c) {
// Skip header.
offset += sizeof(int32);
- myCNode = READ_LE_UINT32(&conv_save_buff[offset]);
+ myCNode = READ_LE_INT32(&conv_save_buff[offset]);
offset += sizeof(int32);
/*int num_decls = */READ_LE_UINT32(&conv_save_buff[offset]);
More information about the Scummvm-git-logs
mailing list