gBuildingVar Addition

Forum Archive - from http://theuniversal.net
Locked
Haxina
VIP
VIP
Posts: 63
Joined: Thu Oct 17, 2013 4:25 pm

gBuildingVar Addition

Post by Haxina »

Software:Registered Server
Version Number:0.67.7
________________________________________________________________________
Location

________________________________________________________________________
Description:
Using the addition operator "+=" on a gBuildingVar assigns value instead of adding up.
Example:
$gBuildingVar1 = 5;
$gBuildingVar1 += 1;

Output: 1
________________________________________________________________________
Steps to Replicate:
Look above.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

nice find.. :) after a bit of digging I discovered a little comment along the lines of " TODO - Must get this to work on buildingVars too! :] " which i'd managed to completely forget about. Fixed 0.68.1
Locked