aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index eb5c72a..a9e9f29 100644
--- a/main.cpp
+++ b/main.cpp
@@ -52,13 +52,13 @@ vector<Entity> entities;
void add_current(scalar I, Curve *path)
{
- Entity n = { Entity::CURRENT, .I = I, .path = path };
+ Entity n = { Entity::CURRENT, I, path };
entities.push_back(n);
}
void add_charge(scalar Q_density, Curve *path)
{
- Entity n = { Entity::CHARGE, .Q_density = Q_density, .path = path };
+ Entity n = { Entity::CHARGE, Q_density, path };
entities.push_back(n);
}