Permalink
Browse files

If field is missing, just print an error message, do not stop things

  • Loading branch information...
Miguel Boton
Miguel Boton committed Nov 28, 2011
1 parent 49b2ede commit 9d0472d726f0858cb5d5b7e2be646cc2276c38e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 neo/game/script/Script_Program.h
@@ -219,7 +219,7 @@ template<class type, etype_t etype, class returnType>
ID_INLINE void idScriptVariable<type, etype, returnType>::LinkTo( idScriptObject &obj, const char *name ) {
data = ( type * )obj.GetVariable( name, etype );
if ( !data ) {
- gameError( "Missing '%s' field in script object '%s'", name, obj.GetTypeName() );
+ common->Printf( "Missing '%s' field in script object '%s'", name, obj.GetTypeName() );
}
}

0 comments on commit 9d0472d

Please sign in to comment.