Commit 875160ba authored by nanahira's avatar nanahira

changes for Android

parent 11898b44
......@@ -269,7 +269,11 @@ uint32 card::get_infos(byte* buf, int32 query_flag, int32 use_cache) {
}
}
*(uint32*)buf = (byte*)p - buf;
#ifdef _IRR_ANDROID_PLATFORM_
memcpy(buf + 4, &query_flag, sizeof(uint32));
#else
*(uint32*)(buf + 4) = query_flag;
#endif
return (uint32)((byte*)p - buf);
}
uint32 card::get_info_location() {
......
......@@ -114,6 +114,9 @@ field::field(duel* pduel) {
nil_event.reason = 0;
nil_event.reason_effect = 0;
nil_event.reason_player = PLAYER_NONE;
#ifdef _IRR_ANDROID_PLATFORM_
memset(&returns, 0, sizeof(return_value));
#endif
}
void field::reload_field_info() {
pduel->write_buffer8(MSG_RELOAD_FIELD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment