equal
deleted
inserted
replaced
28 } |
28 } |
29 |
29 |
30 static void Load_CHTS() |
30 static void Load_CHTS() |
31 { |
31 { |
32 Cheat *cht = (Cheat*)&_cheats; |
32 Cheat *cht = (Cheat*)&_cheats; |
33 uint count = SlGetFieldLength() / 2; |
33 size_t count = SlGetFieldLength() / 2; |
34 |
34 |
35 for (uint i = 0; i < count; i++) { |
35 for (uint i = 0; i < count; i++) { |
36 cht[i].been_used = (SlReadByte() != 0); |
36 cht[i].been_used = (SlReadByte() != 0); |
37 cht[i].value = (SlReadByte() != 0); |
37 cht[i].value = (SlReadByte() != 0); |
38 } |
38 } |