Revision: 2440
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2440&view=rev
Author:   neorej16
Date:     2012-02-03 20:02:17 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
Races working again.

Modified Paths:
--------------
    trunk/bin/resources/scripts.zip
    trunk/source/main/scripting/GameScript.cpp
    trunk/source/main/scripting/LocalStorage.cpp

Modified: trunk/bin/resources/scripts.zip
===================================================================
(Binary files differ)

Modified: trunk/source/main/scripting/GameScript.cpp
===================================================================
--- trunk/source/main/scripting/GameScript.cpp  2012-02-03 15:52:26 UTC (rev 
2439)
+++ trunk/source/main/scripting/GameScript.cpp  2012-02-03 20:02:17 UTC (rev 
2440)
@@ -530,7 +530,7 @@
        for(it = params.dict->dict.begin(); it != params.dict->dict.end(); it++)
        {
                int typeId = it->second.typeId;
-               if(typeId == mse->getEngine()->GetTypeIdByDecl("std::string"))
+               if(typeId == mse->getEngine()->GetTypeIdByDecl("string"))
                {
                        // its a std::string
                        std::string *str = (std::string *)it->second.valueObj;
@@ -720,7 +720,7 @@
        for(it = params->dict->dict.begin(); it != params->dict->dict.end(); 
it++)
        {
                int typeId = it->second.typeId;
-               if(typeId == mse->getEngine()->GetTypeIdByDecl("std::string"))
+               if(typeId == mse->getEngine()->GetTypeIdByDecl("string"))
                {
                        // its a std::string, copy it over
                        std::string *str = (std::string *)it->second.valueObj;

Modified: trunk/source/main/scripting/LocalStorage.cpp
===================================================================
--- trunk/source/main/scripting/LocalStorage.cpp        2012-02-03 15:52:26 UTC 
(rev 2439)
+++ trunk/source/main/scripting/LocalStorage.cpp        2012-02-03 20:02:17 UTC 
(rev 2440)
@@ -51,7 +51,7 @@
 LocalStorage::LocalStorage(AngelScript::asIScriptEngine *engine_in)
 {
        this->engine = engine_in;
-       refCount--;
+       refCount++;
 
        engine->NotifyGarbageCollectorOfNewObject(this, 
engine->GetTypeIdByDecl("LocalStorage"));       
        saved = true;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to