src/misc.cpp
branchnoai
changeset 9869 6404afe43575
parent 9837 c9ec4f82e0d0
child 10181 54df587fef5d
equal deleted inserted replaced
9868:3998f2e73dda 9869:6404afe43575
   480 
   480 
   481 static void Load_CHTS()
   481 static void Load_CHTS()
   482 {
   482 {
   483 	Cheat* cht = (Cheat*)&_cheats;
   483 	Cheat* cht = (Cheat*)&_cheats;
   484 	uint count = SlGetFieldLength() / 2;
   484 	uint count = SlGetFieldLength() / 2;
   485 	uint i;
   485 
   486 
   486 	for (uint i = 0; i < count; i++) {
   487 	for (i = 0; i < count; i++) {
       
   488 		cht[i].been_used = (SlReadByte() != 0);
   487 		cht[i].been_used = (SlReadByte() != 0);
   489 		cht[i].value     = (SlReadByte() != 0);
   488 		cht[i].value     = (SlReadByte() != 0);
   490 	}
   489 	}
   491 }
   490 }
   492 
   491