mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
sag:: fixup to sag_edge
This commit is contained in:
parent
6450f7c8a6
commit
84344e7d5d
@ -879,6 +879,7 @@ namespace sag {
|
|||||||
void readsag(const char *fname) {
|
void readsag(const char *fname) {
|
||||||
maxweight = 0;
|
maxweight = 0;
|
||||||
sag_edge = add_edgetype("SAG edge");
|
sag_edge = add_edgetype("SAG edge");
|
||||||
|
rogueviz::cleanup.push_back([] { sag_edge = nullptr; });
|
||||||
fhstream f(fname, "rt");
|
fhstream f(fname, "rt");
|
||||||
if(!f.f) {
|
if(!f.f) {
|
||||||
printf("Failed to open SAG file: %s\n", fname);
|
printf("Failed to open SAG file: %s\n", fname);
|
||||||
|
Loading…
Reference in New Issue
Block a user