Commit ce97d9a5 authored by Uytrewq's avatar Uytrewq Committed by GitHub

update card_state::init_state (#547)

parent 0131c217
...@@ -37,26 +37,26 @@ bool card_state::is_location(int32 loc) const { ...@@ -37,26 +37,26 @@ bool card_state::is_location(int32 loc) const {
return false; return false;
} }
void card_state::init_state() { void card_state::init_state() {
code = 0xffffffff; code = UINT32_MAX;
code2 = 0xffffffff; code2 = UINT32_MAX;
type = 0xffffffff; type = UINT32_MAX;
level = 0xffffffff; level = UINT32_MAX;
rank = 0xffffffff; rank = UINT32_MAX;
link = 0xffffffff; link = UINT32_MAX;
lscale = 0xffffffff; lscale = UINT32_MAX;
rscale = 0xffffffff; rscale = UINT32_MAX;
attribute = 0xffffffff; attribute = UINT32_MAX;
race = 0xffffffff; race = UINT32_MAX;
attack = 0xffffffff; attack = -1;
defense = 0xffffffff; defense = -1;
base_attack = 0xffffffff; base_attack = -1;
base_defense = 0xffffffff; base_defense = -1;
controler = 0xff; controler = UINT8_MAX;
location = 0xff; location = UINT8_MAX;
sequence = 0xff; sequence = UINT8_MAX;
position = 0xff; position = UINT8_MAX;
reason = 0xffffffff; reason = UINT32_MAX;
reason_player = 0xff; reason_player = UINT8_MAX;
} }
void query_cache::clear_cache() { void query_cache::clear_cache() {
info_location = UINT32_MAX; info_location = UINT32_MAX;
......
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