From 2afc2f4f1dd89518995f1b5a539aea932aecab65 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Fri, 08 Mar 2019 19:50:18 +0000
Subject: [PATCH] Full write of constant volume plugin

---
 src/plugins.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/plugins.c b/src/plugins.c
index 0af3d4f..a6b843b 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -171,6 +171,9 @@
 		if(plist->plugin[i]->function->vm_before_montecarlo_constraint!=NULL){
 			plist->chain->vm_before_montecarlo_constraint=plugin_to_chain(plist->chain->vm_before_montecarlo_constraint, plist->plugin[i]);
 		}
+		if(plist->plugin[i]->function->vm_new_state_accepted!=NULL){
+			plist->chain->vm_new_state_accepted=plugin_to_chain(plist->chain->vm_new_state_accepted, plist->plugin[i]);
+		}
 	}
 	plist->n=number_of_plugins;
 	return plist;

--
Gitblit v1.9.3