oops. Fixed the copy constructor bug. No more crashes :)

This commit is contained in:
Zachary Pavlov 2009-07-07 17:10:17 +00:00
parent f6a13bdc9c
commit 1d896fcbb7
1 changed files with 4 additions and 3 deletions

View File

@ -21,11 +21,11 @@
INLINE UvScrollNode::
UvScrollNode(const string &name, float u_speed, float v_speed) :
PandaNode(name),
_start_time(ClockObject::get_global_clock()->get_frame_time()),
_u_speed(u_speed),
_v_speed(v_speed)
{
{
set_cull_callback();
_start_time = ClockObject::get_global_clock()->get_frame_time();
}
////////////////////////////////////////////////////////////////////
@ -78,6 +78,7 @@ INLINE UvScrollNode::
UvScrollNode(const UvScrollNode &copy) :
PandaNode(copy),
_u_speed(copy._u_speed),
_v_speed(copy._v_speed)
_v_speed(copy._v_speed),
_start_time(copy._start_time)
{
}