summaryrefslogtreecommitdiff
path: root/src/d/d_s_actor_data_mng.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2023-11-23 23:34:48 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2023-11-23 23:34:48 -0500
commit8ab8d352926122c6e7ec27610613f0adce5d0118 (patch)
treeffb44f85f763675896ec309c37e4328b57526632 /src/d/d_s_actor_data_mng.cpp
parentfd45c5a4f23165a6f9cb75955491d80def9ec428 (diff)
d_a_arrow + others cleanup and doc
Diffstat (limited to 'src/d/d_s_actor_data_mng.cpp')
-rw-r--r--src/d/d_s_actor_data_mng.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/d/d_s_actor_data_mng.cpp b/src/d/d_s_actor_data_mng.cpp
index a3863756..ca4c1505 100644
--- a/src/d/d_s_actor_data_mng.cpp
+++ b/src/d/d_s_actor_data_mng.cpp
@@ -15,17 +15,17 @@ dADM_CharTbl::~dADM_CharTbl() {
/* 800C2758-800C2844 .text SetData__12dADM_CharTblFUlUlUlUlUlUlUl */
void dADM_CharTbl::SetData(u32 offs, u32 row_num, u32 row_offs, u32 colum_num, u32 colum_offs, u32 dat_size, u32 data) {
- char** row = (char**)row_offs;
- char** colum = (char**)colum_offs;
+ /* Nonmatching - regalloc */
+ u32* row = (u32*)row_offs;
+ for (u32 i = 0; i < row_num; i++, row++)
+ *row += offs;
- for (u32 i = 0; i < row_num; i++, row_offs += 4)
- *((u32*)row_offs) += offs;
-
- for (u32 i = 0; i < colum_num; i++, colum_offs += 4)
- *((u32*)colum_offs) += offs;
+ u32* colum = (u32*)colum_offs;
+ for (u32 i = 0; i < colum_num; i++, colum++)
+ *colum += offs;
JUT_ASSERT(0x39, dat_size == row_num * colum_num);
- cDT::Set(row_num, row, colum_num, colum, (u8*)data);
+ cDT::Set(row_num, (char**)row_offs, colum_num, (char**)colum_offs, (u8*)data);
SetUpIndex();
}