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