Skip to content

Commit

Permalink
6.01.00212 Try not to crash the game on unknown vehicle types Coursep…
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaiko committed May 9, 2019
1 parent 7cde880 commit 6679949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ function courseplay:saveToXMLFile(xmlFile, key, usedModNames)
newKey = newKey..'.courseplay'


local runCounter = self.cp.driver.runCounter or 0
local runCounter = self.cp.driver and self.cp.driver.runCounter or 0
--CP basics
setXMLInt(xmlFile, newKey..".basics #aiMode", self.cp.mode)
setXMLString(xmlFile, newKey..".basics #courses", tostring(table.concat(self.cp.loadedCourses, ",")))
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="40">
<version>6.01.00211</version>
<version>6.01.00212</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay SIX</br>
Expand Down

0 comments on commit 6679949

Please sign in to comment.