Commit b7f99548 authored by DailyShana's avatar DailyShana

effect_set_v

parent 4309e375
...@@ -101,6 +101,7 @@ struct effect_set_v { ...@@ -101,6 +101,7 @@ struct effect_set_v {
effect*& at(int index) { effect*& at(int index) {
return container[index]; return container[index];
} }
private:
std::vector<effect*> container; std::vector<effect*> container;
int count; int count;
}; };
......
...@@ -4906,7 +4906,7 @@ int32 field::refresh_location_info(uint16 step) { ...@@ -4906,7 +4906,7 @@ int32 field::refresh_location_info(uint16 step) {
return FALSE; return FALSE;
} }
case 1: { case 1: {
if(core.disfield_effects.count == 0) { if(core.disfield_effects.size() == 0) {
core.units.begin()->step = 2; core.units.begin()->step = 2;
return FALSE; return FALSE;
} }
...@@ -4940,7 +4940,7 @@ int32 field::refresh_location_info(uint16 step) { ...@@ -4940,7 +4940,7 @@ int32 field::refresh_location_info(uint16 step) {
} }
case 3: { case 3: {
// If the blocking number is not reached, we should block more slots. // If the blocking number is not reached, we should block more slots.
if(core.extram_effects.count == 0) { if(core.extram_effects.size() == 0) {
core.units.begin()->step = 4; core.units.begin()->step = 4;
return FALSE; return FALSE;
} }
...@@ -4980,7 +4980,7 @@ int32 field::refresh_location_info(uint16 step) { ...@@ -4980,7 +4980,7 @@ int32 field::refresh_location_info(uint16 step) {
} }
case 5: { case 5: {
// EFFECT_USE_EXTRA_SZONE version // EFFECT_USE_EXTRA_SZONE version
if(core.extras_effects.count == 0) { if(core.extras_effects.size() == 0) {
core.units.begin()->step = 6; core.units.begin()->step = 6;
return FALSE; return FALSE;
} }
......
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