Commit e671d02
committed
Fix an issue with named/brewed/forged items getting saved with the wrong character id
The isue was triggered by the refactoring of old undocumented code that
relied on the overflow behavior during assignment from int32 to int16
and from uint16 to int16, and by a subsequent clamping to SMALLINT range
operated by the SQL server.
Credits: Haru <[email protected]>
Fixes #2409
Signed-off-by: Ibrahim Zidan <[email protected]>1 parent ab81d40 commit e671d02
File tree
4 files changed
+37
-9
lines changed- sql-files/upgrades
- src/map
4 files changed
+37
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5599 | 5599 | | |
5600 | 5600 | | |
5601 | 5601 | | |
5602 | | - | |
5603 | | - | |
5604 | | - | |
| 5602 | + | |
| 5603 | + | |
| 5604 | + | |
5605 | 5605 | | |
5606 | 5606 | | |
5607 | 5607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8177 | 8177 | | |
8178 | 8178 | | |
8179 | 8179 | | |
8180 | | - | |
8181 | | - | |
8182 | | - | |
8183 | | - | |
8184 | | - | |
8185 | | - | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
8186 | 8186 | | |
8187 | 8187 | | |
8188 | 8188 | | |
| |||
0 commit comments