Browse Source

Fixed raw pointer debugging.

Mark Sibly 8 years ago
parent
commit
91b27f5607
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/monkey/native/bbdebug.h

+ 1 - 1
modules/monkey/native/bbdebug.h

@@ -45,7 +45,7 @@ template<class T> bbString bbDBType( bbGCVar<T> *p ){ return bbDBType<T*>(); }
 template<class T> bbString bbDBValue( bbGCVar<T> *p ){ T *t=p->get();return t ? bbDBValue( &t ) : "Null"; }
 
 template<class T> bbString bbDBType( T **p ){ return bbDBType<T>()+" Ptr"; }
-template<class T> bbString bbDBValue( T **p ){ char buf[64];sprintf( buf,"$%x",p );return buf; }
+template<class T> bbString bbDBValue( T **p ){ char buf[64];sprintf( buf,"$%x",*p );return buf; }
 
 struct bbDBVarType{
 	virtual bbString type()=0;