fixed indexer call

develop
doomchild 2010-05-25 15:36:14 -05:00
parent dd3bdecc1a
commit af354e2dee
1 changed files with 2 additions and 1 deletions

@ -31,6 +31,7 @@ distribution.
#include "DFTileTypes.h"
#include "DFTypes.h"
#include "DFWindow.h"
#include "DFContextManager.h"
#include "DFContext.h"
using namespace std;
@ -106,7 +107,7 @@ DFHackObject* ContextManager_getContext(DFHackObject* contextMgr, uint32_t index
if(index >= mgr->size())
return NULL;
return (DFHackObject*)mgr[index];
return (DFHackObject*)((DFHack::Context*)((*mgr)[index]));
}
return NULL;