View Single Post
  #2  
Old 01-29-2013, 09:31 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

i should lay off the coffee so i can see i missed copying a few lines...

Code:
Index: questmgr.cpp
===================================================================
--- questmgr.cpp	(revision 2468)
+++ questmgr.cpp	(working copy)
@@ -2293,6 +2293,8 @@
 	const ItemInst* inst = database.CreateItem(item_id);
 	if (!inst)
 		return "INVALID ITEM ID IN VARLINK";
+    if ( !initiator || !initiator->IsClient() )
+        return "INVALID INITIATOR IN VARLINK";
 	char* link = 0;
 	char* tempstr = 0;
 	if (initiator->MakeItemLink(link, inst)) {	// make a link to the item
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote