;
This commit is contained in:
parent
229935b4f8
commit
b4ed64dbfb
@ -65,7 +65,7 @@ int count_targets(struct station* station){
|
|||||||
int count_capacity(struct station* station){
|
int count_capacity(struct station* station){
|
||||||
int capacity = 0;
|
int capacity = 0;
|
||||||
|
|
||||||
for (int i = 0; i < station -> track_count; i++;){
|
for (int i = 0; i < station -> track_count; i++){
|
||||||
struct car* vagon = station ->tracks[i]; // kontrolujem kazdu kolaj, kazdy vagon linked hash tablu
|
struct car* vagon = station ->tracks[i]; // kontrolujem kazdu kolaj, kazdy vagon linked hash tablu
|
||||||
while (vagon) {
|
while (vagon) {
|
||||||
capacity = capacity + vagon -> capacity;
|
capacity = capacity + vagon -> capacity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user