From 8aee6bd50bf2da289878ab767358a80271031329 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sun, 21 Jan 2007 23:45:06 +0000 Subject: [PATCH] Fix to factory template. Originally committed to SVN as r869. --- aegisub/factory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/factory.h b/aegisub/factory.h index 9e76457ef..37c4d773f 100644 --- a/aegisub/factory.h +++ b/aegisub/factory.h @@ -64,6 +64,7 @@ protected: public: static wxArrayString GetFactoryList(wxString favourite=_T("")) { + if (factories == NULL) factories = new std::map; wxArrayString list; favourite = favourite.Lower(); for (std::map::iterator cur=factories->begin();cur!=factories->end();cur++) {