fix fatal error on wrong placement args
This commit is contained in:
@@ -196,6 +196,7 @@ public:
|
|||||||
|
|
||||||
stackguard _(L);
|
stackguard _(L);
|
||||||
pushenv(L, *env);
|
pushenv(L, *env);
|
||||||
|
try {
|
||||||
if (getfield(L, "place_structures_wide")) {
|
if (getfield(L, "place_structures_wide")) {
|
||||||
pushivec_stack(L, offset);
|
pushivec_stack(L, offset);
|
||||||
pushivec_stack(L, size);
|
pushivec_stack(L, size);
|
||||||
@@ -212,6 +213,9 @@ public:
|
|||||||
pop(L);
|
pop(L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (const std::runtime_error& err) {
|
||||||
|
logger.error() << err.what();
|
||||||
|
}
|
||||||
return placements;
|
return placements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user