From 2e5079a8070872ce2c3ada7c14a79984a86a8165 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 26 Mar 2006 17:12:38 +0000 Subject: [PATCH] Portability --- voptions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voptions.cc b/voptions.cc index 2157ddf..e564157 100644 --- a/voptions.cc +++ b/voptions.cc @@ -236,7 +236,7 @@ int VOptions::handleCommand(int command) void VOptions::doSave() { UINT i; - int result[numOptions]; + int* result = new int[numOptions]; for (i = 0; i < numOptions; i++) { @@ -273,6 +273,8 @@ void VOptions::doSave() } } + delete[] result; + // Send it to parent for changes to be applied Message* m = new Message(); m->message = Message::CHANGED_OPTIONS; -- 2.39.5