The memory estimation feature was segfaulting when the program was compiled with GCC and optimizations because the re_estimate_tree_memory function didn't have a return value in some cases, which is undefined behavior. (GCC optimizes out the check for the chance node and just assumes any non-action node is a chance node). This fixes that.
The memory estimation feature was segfaulting when the program was compiled with GCC and optimizations because the re_estimate_tree_memory function didn't have a return value in some cases, which is undefined behavior. (GCC optimizes out the check for the chance node and just assumes any non-action node is a chance node). This fixes that.