From 6274a02610afa1b93f0c6b6586b2f074fd09ef3c Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 15 Jun 2002 19:31:43 +0000 Subject: [PATCH] allow multiple init's of EventParameters --- panda/src/event/eventParameter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/event/eventParameter.h b/panda/src/event/eventParameter.h index b50cc68e11..b3f271345d 100644 --- a/panda/src/event/eventParameter.h +++ b/panda/src/event/eventParameter.h @@ -90,10 +90,10 @@ public: static TypeHandle get_class_type() { return _type_handle; } - static void init_type(const string &type_name = "EventStoreValue") { + static void init_type(const string &type_name = "UndefinedEventStoreValue") { TypedReferenceCount::init_type(); - register_type(_type_handle, type_name, - TypedReferenceCount::get_class_type()); + _type_handle = register_dynamic_type + (type_name, TypedReferenceCount::get_class_type()); } virtual TypeHandle get_type() const { return get_class_type();