Permalink
Browse files

VEFObject::VEFObject: better to crash than leak in case of ctor failure

  • Loading branch information...
1 parent d143422 commit 1877eb564e0345509b7d55ffefb072df824e20cf @lynxlynxlynx lynxlynxlynx committed Aug 8, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 gemrb/core/VEFObject.cpp
View
@@ -49,8 +49,6 @@ VEFObject::VEFObject()
VEFObject::VEFObject(ScriptedAnimation *sca)
{
- if (!sca) return; //wtf, should avoid this
-
XPos=sca->XPos;
YPos=sca->YPos;
ZPos=sca->ZPos; //sometimes this is not an actual ZPos - PST portals, don't use it for rendering?

0 comments on commit 1877eb5

Please sign in to comment.