1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-28 16:32:27 +01:00

Merge pull request #1406 from NeroOneTrueKing/patch-fix-oextra-cpy

Fix memcpy for oextra
This commit is contained in:
Chris-plus-alphanumericgibberish 2021-01-12 17:44:23 -05:00 committed by GitHub
commit 73f23197be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ int ox_id;
ox_p2 = get_ox(obj2, ox_id);
if(!ox_p2)
add_ox_l(obj2, ox_id, siz_ox(obj1, ox_id)-sizeof(long));
memcpy(ox_p1, get_ox(obj2, ox_id), siz_ox(obj1, ox_id));
memcpy(get_ox(obj2, ox_id), ox_p1, siz_ox(obj1, ox_id));
}
return;
}