From 2fd6e728513f46e1f313667dfcf6b3d6e09cad39 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sun, 16 May 2004 13:05:15 +0000 Subject: Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer. --- source/gameengine/GameLogic/SCA_RandomSensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/GameLogic/SCA_RandomSensor.h') diff --git a/source/gameengine/GameLogic/SCA_RandomSensor.h b/source/gameengine/GameLogic/SCA_RandomSensor.h index 41f7f453556..1a3c0402e31 100644 --- a/source/gameengine/GameLogic/SCA_RandomSensor.h +++ b/source/gameengine/GameLogic/SCA_RandomSensor.h @@ -61,7 +61,7 @@ public: /* Python interface ---------------------------------------------------- */ /* --------------------------------------------------------------------- */ - virtual PyObject* _getattr(char *attr); + virtual PyObject* _getattr(const STR_String& attr); /* 1. setSeed */ KX_PYMETHOD_DOC(SCA_RandomSensor,SetSeed); -- cgit v1.2.3