[Scummvm-git-logs] scummvm master -> a8e4da608bbc3f17a50b775f3ff5adc773925055
dreammaster
noreply at scummvm.org
Wed Nov 27 20:11:37 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:
a8e4da608b M4: cNode is signed in save/restore conv state
Commit: a8e4da608bbc3f17a50b775f3ff5adc773925055
https://github.com/scummvm/scummvm/commit/a8e4da608bbc3f17a50b775f3ff5adc773925055
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-11-27T12:11:13-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